/*!
 * Kids Outlet Egypt — Store skin v2.0.0 (Parmagito Digital Services)
 * Loaded store-wide when "مظهر المتجر الموحد" is enabled. Everything is scoped under body.koe-skin / .koe-scope.
 * No !important. WoodMart is themed through its own CSS variables; generic WooCommerce selectors use :where() to stay low-specificity.
 */

/* ------------------------------------------------------------------ Fonts (local, OFL) */
@font-face { font-family: "KOE Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/baloo-bhaijaan-2-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KOE Display"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/baloo-bhaijaan-2-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KOE Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/baloo-bhaijaan-2-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "KOE Display"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/baloo-bhaijaan-2-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "KOE Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KOE Text"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KOE Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "KOE Text"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ Design tokens */
.koe-skin,
.koe-scope {
	/* Brand palette — sampled from the Kids Outlet Egypt logo */
	--koe-ink: #14213d;
	--koe-navy: #0c2d6b;
	--koe-primary: #0057b8;
	--koe-primary-hover: #00428c;
	--koe-sky: #0a8fe8;
	--koe-sun: #ffc21a;
	--koe-sun-hover: #f2b200;
	--koe-pink: #ef2a74;
	--koe-pink-700: #c0144f;
	--koe-green: #00a86c;
	--koe-green-700: #00704a;
	/* Surfaces */
	--koe-ivory: #fffbf4;
	--koe-sand: #f6eee1;
	--koe-sand-2: #efe3cf;
	--koe-white: #ffffff;
	--koe-sky-50: #eaf4fe;
	--koe-pink-50: #fdecf2;
	--koe-green-50: #e5f6ee;
	--koe-sun-50: #fff4d4;
	/* Text & lines */
	--koe-text: #1d2740;
	--koe-muted: #586174;
	--koe-line: #e7ddcd;
	--koe-line-strong: #d6c8b2;
	--koe-success: #0f7a4d;
	--koe-error: #b42318;
	--koe-focus: #0057b8;
	/* Type */
	--koe-font-display: "KOE Display", "Baloo Bhaijaan 2", "Segoe UI", Tahoma, sans-serif;
	--koe-font-text: "KOE Text", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--koe-fs-h1: clamp(2.15rem, 1.35rem + 3.4vw, 4.6rem);
	--koe-fs-h2: clamp(1.6rem, 1.15rem + 1.9vw, 2.8rem);
	--koe-fs-h3: clamp(1.2rem, 1.05rem + .6vw, 1.55rem);
	--koe-fs-body: clamp(.97rem, .93rem + .2vw, 1.07rem);
	--koe-fs-small: .86rem;
	/* Geometry */
	--koe-container: 1360px;
	--koe-gutter: clamp(16px, 3.2vw, 40px);
	--koe-section: clamp(44px, 5.2vw, 84px);
	--koe-gap: clamp(12px, 1.6vw, 24px);
	--koe-r-sm: 10px;
	--koe-r-md: 16px;
	--koe-r-lg: 24px;
	--koe-r-xl: 32px;
	--koe-shadow-sm: 0 1px 2px rgba(20, 33, 61, .06), 0 2px 8px -4px rgba(20, 33, 61, .08);
	--koe-shadow-md: 0 2px 4px rgba(20, 33, 61, .04), 0 18px 40px -18px rgba(20, 33, 61, .28);
	/* Motion (SOP V2.0 tokens, calibrated) */
	--koe-motion-fast: 160ms;
	--koe-motion-normal: 260ms;
	--koe-motion-emphasis: 520ms;
	--koe-ease-standard: cubic-bezier(.2, .8, .2, 1);
	--koe-ease-expressive: cubic-bezier(.22, 1, .36, 1);
	--koe-reveal-distance: 18px;
}
@media (prefers-reduced-motion: reduce) {
	.koe-skin,
	.koe-scope { --koe-motion-fast: 0ms; --koe-motion-normal: 0ms; --koe-motion-emphasis: 0ms; --koe-reveal-distance: 0px; }
}

/* ------------------------------------------------------------------ WoodMart variable bridge */
body.koe-skin {
	--wd-primary-color: var(--koe-primary);
	--wd-alternative-color: var(--koe-pink-700);
	--wd-link-color: var(--koe-ink);
	--wd-link-color-hover: var(--koe-primary);
	--wd-text-font: var(--koe-font-text);
	--wd-text-color: var(--koe-text);
	--wd-title-font: var(--koe-font-display);
	--wd-title-font-weight: 800;
	--wd-title-color: var(--koe-ink);
	--wd-entities-title-font: var(--koe-font-text);
	--wd-entities-title-font-weight: 600;
	--wd-entities-title-color: var(--koe-ink);
	--wd-entities-title-color-hover: var(--koe-primary);
	--wd-widget-title-font: var(--koe-font-display);
	--wd-header-el-font: var(--koe-font-text);
	--wd-primary-nav-font: var(--koe-font-text);
	--wd-brd-radius: 14px;
	--wd-form-brd-radius: 12px;
	--wd-form-brd-width: 1px;
	--btn-default-bgcolor: var(--koe-sand);
	--btn-default-bgcolor-hover: var(--koe-sand-2);
	--btn-default-color: var(--koe-ink);
	--btn-default-color-hover: var(--koe-ink);
	--btn-accented-bgcolor: var(--koe-primary);
	--btn-accented-bgcolor-hover: var(--koe-primary-hover);
	--btn-accented-color: #fff;
	--btn-accented-color-hover: #fff;
	--btn-default-brd-radius: 14px;
	--btn-accented-brd-radius: 14px;
	--btn-font-family: var(--koe-font-text);
	--btn-font-weight: 600;
	--btn-transform: none;
	font-family: var(--koe-font-text);
	color: var(--koe-text);
	-webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ Base typography (low specificity) */
.koe-skin :where(h1, h2, h3, .page-title, .product_title, .entry-title, .title) {
	font-family: var(--koe-font-display);
	color: var(--koe-ink);
	letter-spacing: 0;
	line-height: 1.3;
}
.koe-skin :where(h4, h5, h6) { font-family: var(--koe-font-text); color: var(--koe-ink); }
.koe-skin :where(a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible) {
	outline: 3px solid var(--koe-focus);
	outline-offset: 2px;
}
.koe-skin :where(::selection) { background: var(--koe-sun); color: var(--koe-ink); }

/* ------------------------------------------------------------------ Buttons (Storefront/classic + WoodMart fallback) */
.koe-skin :where(.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button:not(.is-link), .wp-element-button) {
	font-family: var(--koe-font-text);
	font-weight: 600;
	border-radius: 14px;
	text-transform: none;
	letter-spacing: 0;
	transition: background-color var(--koe-motion-fast) ease, transform var(--koe-motion-fast) ease;
}
.koe-skin :where(.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .single_add_to_cart_button, .checkout-button, #place_order, .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button) {
	background-color: var(--koe-primary);
	color: #fff;
}
.koe-skin :where(.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover) {
	background-color: var(--koe-primary-hover);
	color: #fff;
}

/* ------------------------------------------------------------------ Prices & badges */
.koe-skin :where(.price, .woocommerce-Price-amount) { color: var(--koe-ink); font-weight: 600; }
.koe-skin :where(.price del, del .woocommerce-Price-amount) { color: var(--koe-muted); font-weight: 400; opacity: 1; }
.koe-skin :where(.price ins) { text-decoration: none; color: var(--koe-pink-700); }
.koe-skin :where(.onsale, .product-label.onsale) {
	background: var(--koe-pink-700);
	color: #fff;
	border-radius: 999px;
	font-family: var(--koe-font-text);
	font-weight: 600;
}
.koe-skin :where(.stock.out-of-stock, .out-of-stock) { color: var(--koe-error); }
.koe-skin :where(.stock.in-stock) { color: var(--koe-success); }

/* ------------------------------------------------------------------ Product grid cards (theme loops) */
.koe-skin :where(ul.products li.product, .wd-product) .woocommerce-loop-product__title,
.koe-skin :where(.wd-product) .wd-entities-title {
	font-family: var(--koe-font-text);
	font-weight: 600;
	line-height: 1.55;
	min-height: 3.1em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Image ratio in theme loops is NOT forced here: it follows WooCommerce → Product images (set thumbnail crop to 4:5,
   see INSTALL.md). Forcing a ratio in CSS on 1:1-cropped thumbnails would create empty bands. */
.koe-skin :where(ul.products li.product) img { border-radius: var(--koe-r-md); }

/* ------------------------------------------------------------------ Forms */
.koe-skin :where(.woocommerce form .input-text, .woocommerce form select, .woocommerce-input-wrapper input, .woocommerce-input-wrapper select, .woocommerce-input-wrapper textarea, .variations select, .wc-block-components-text-input input) {
	border-radius: 12px;
	border-color: var(--koe-line-strong);
	font-family: var(--koe-font-text);
}
.koe-skin :where(.woocommerce form .form-row label) { font-weight: 600; color: var(--koe-ink); }

/* ------------------------------------------------------------------ Notices */
.koe-skin :where(.woocommerce-message, .woocommerce-info) { border-top-color: var(--koe-primary); background: var(--koe-sky-50); color: var(--koe-ink); }
.koe-skin :where(.woocommerce-error) { border-top-color: var(--koe-error); }
.koe-skin :where(.woocommerce-message, .woocommerce-info)::before { color: var(--koe-primary); }

/* ------------------------------------------------------------------ Single product (classic templates) */
.koe-skin :where(.woocommerce div.product) .product_title { font-size: var(--koe-fs-h2); }
.koe-skin :where(.woocommerce div.product) p.price,
.koe-skin :where(.woocommerce div.product) span.price { font-size: 1.45rem; }
.koe-skin :where(.woocommerce div.product .woocommerce-tabs ul.tabs li.active a) { color: var(--koe-primary); }
.koe-skin :where(.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td) { padding-block: 6px; }
.koe-skin :where(.woocommerce-product-attributes) th { font-weight: 600; color: var(--koe-ink); }

/* ------------------------------------------------------------------ Cart / checkout / account — calm, no decorative motion */
.koe-skin :where(.woocommerce-cart-form, .cart_totals, #order_review, .woocommerce-checkout-review-order, .woocommerce-MyAccount-content) {
	font-family: var(--koe-font-text);
}
.koe-skin :where(.cart_totals, #order_review) {
	background: var(--koe-white);
	border: 1px solid var(--koe-line);
	border-radius: var(--koe-r-lg);
	padding: clamp(14px, 2vw, 24px);
}
.koe-skin :where(.woocommerce-MyAccount-navigation ul) { list-style: none; margin: 0; padding: 0; }
.koe-skin :where(.woocommerce-MyAccount-navigation li a) { display: block; padding: 10px 14px; border-radius: 12px; }
.koe-skin :where(.woocommerce-MyAccount-navigation li.is-active a) { background: var(--koe-sky-50); color: var(--koe-primary); font-weight: 600; }
.koe-skin :where(.woocommerce-checkout #payment) { border-radius: var(--koe-r-lg); }

/* ------------------------------------------------------------------ Content pages (policies etc.) */
.koe-skin :where(.entry-content, .wd-entry-content) > :where(h2, h3) { margin-top: 1.6em; }
.koe-skin :where(.entry-content, .wd-entry-content) :where(p, li) { line-height: 1.85; }

/* =================================================================== v2.1 · WoodMart templates (scoped, class-level, no !important) */
/* Page title band: calm sand instead of a black block */
.koe-skin .wd-page-title .wd-page-title-bg { background-color: var(--koe-sand); background-image: radial-gradient(circle at 8% 30%, rgba(255, 194, 26, .22) 0 90px, transparent 91px), radial-gradient(circle at 92% 80%, rgba(10, 143, 232, .12) 0 120px, transparent 121px); }
.koe-skin .wd-page-title { padding-block: clamp(26px, 4vw, 54px); }
.koe-skin .wd-page-title.color-scheme-light .title,
.koe-skin .wd-page-title.color-scheme-light .entry-title { color: var(--koe-ink); font-family: var(--koe-font-display); font-weight: 800; }
.koe-skin .wd-page-title.color-scheme-light .wd-breadcrumbs,
.koe-skin .wd-page-title.color-scheme-light .wd-breadcrumbs a,
.koe-skin .wd-page-title.color-scheme-light .woocommerce-breadcrumb,
.koe-skin .wd-page-title.color-scheme-light .woocommerce-breadcrumb a { color: var(--koe-muted); }

/* Product grid cards */
.koe-skin .wd-product .product-wrapper { background: var(--koe-white); border: 1px solid var(--koe-line); border-radius: 22px; padding: 6px 6px 16px; height: 100%; transition: box-shadow var(--koe-motion-normal) ease, transform var(--koe-motion-normal) var(--koe-ease-standard); }
.koe-skin .wd-product .wd-product-thumb { border-radius: 17px; overflow: hidden; background: var(--koe-sand); }
.koe-skin .wd-product .product-element-bottom { padding-inline: 10px; }
.koe-skin .wd-product .wd-entities-title { font-family: var(--koe-font-text); font-weight: 600; font-size: .98rem; line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.koe-skin .wd-product .wd-product-cats { font-size: .8rem; }
.koe-skin .wd-product .koe-loopmeta { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.koe-skin .wd-product .koe-loopmeta .koe-sizes { justify-content: center; }
.koe-skin .wd-product .price { font-size: 1.05rem; }
.koe-skin .wd-product .price ins { color: var(--koe-pink-700); }
@media (hover: hover) { .koe-skin .wd-product:hover .product-wrapper { box-shadow: var(--koe-shadow-md); border-color: transparent; transform: translateY(-3px); } }

/* WoodMart product labels */
.koe-skin .product-labels .product-label { border-radius: 999px; font-family: var(--koe-font-text); font-weight: 600; letter-spacing: 0; text-transform: none; }
.koe-skin .product-labels .product-label.onsale { background-color: var(--koe-pink-700); color: #fff; }
.koe-skin .product-labels .product-label.out-of-stock { background-color: var(--koe-ink); color: #fff; }

/* Footer band */
.koe-skin .wd-footer { background-color: var(--koe-navy); color: rgba(255, 251, 244, .86); }

/* =================================================================== v2.1.1 · Header (WoodMart Header Builder rows) */
body.koe-skin .whb-header .whb-top-bar { background-color: var(--koe-navy); border-bottom: 0; }
body.koe-skin .whb-header .whb-top-bar .whb-col-center { justify-content: center; }
body.koe-skin .whb-header .whb-general-header { border-bottom: 1px solid var(--koe-line); }
body.koe-skin .whb-header .whb-header-bottom .whb-col-center { justify-content: center; }
body.koe-skin .whb-header .whb-header-bottom .wd-header-nav { flex: 1 1 auto; display: flex; justify-content: center; }
body.koe-skin .whb-header .whb-header-bottom .wd-nav-main { justify-content: center; }
body.koe-skin .whb-header .wd-nav-main > li > a { font-family: var(--koe-font-text); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--koe-ink); }
body.koe-skin .whb-header .wd-nav-main > li.current-menu-item > a,
body.koe-skin .whb-header .wd-nav-main > li > a:hover { color: var(--koe-primary); }

/* Homepage: content starts right under the header (error log #16) */
body.koe-has-home .wd-content-layout { padding-top: 14px; }

/* Title band text in WoodMart "light" scheme: every descendant readable on sand */
.koe-skin .wd-page-title.color-scheme-light,
.koe-skin .wd-page-title.color-scheme-light a,
.koe-skin .wd-page-title.color-scheme-light .wd-checkout-steps li,
.koe-skin .wd-page-title.color-scheme-light .wd-checkout-steps a,
.koe-skin .wd-page-title.color-scheme-light .wd-checkout-steps span { color: var(--koe-muted); }
.koe-skin .wd-page-title.color-scheme-light .wd-checkout-steps .step-active,
.koe-skin .wd-page-title.color-scheme-light .wd-checkout-steps .step-active a,
.koe-skin .wd-page-title.color-scheme-light .wd-checkout-steps .step-active span { color: var(--koe-ink); }
.koe-skin .wd-page-title.color-scheme-light .wd-checkout-steps .step-active a { border-color: var(--koe-primary); }

/* =================================================================== v2.1.2 · contrast fixes found by the automated scan */
.koe-skin .wd-page-title { background-color: var(--koe-sand); }
.koe-skin .wd-page-title.color-scheme-light .wd-breadcrumbs .wd-last,
.koe-skin .wd-page-title.color-scheme-light .wd-breadcrumbs span,
.koe-skin .wd-page-title.color-scheme-light .breadcrumb-last { color: var(--koe-ink); }
.koe-skin .wd-product .wd-product-cats,
.koe-skin .wd-product .wd-product-cats a { color: var(--koe-muted); }
.koe-skin .price del, .koe-skin .price del *,
.koe-skin del.wc-block-components-product-price__regular, .koe-skin del.wc-block-components-product-price__regular *,
.koe-skin .wc-block-components-order-summary-item__individual-prices del,
.koe-skin .wc-block-components-order-summary-item__individual-prices del * { color: var(--koe-muted); }
/* WoodMart paints warning/info notices white on amber (1.97:1) — keep its amber, use ink text */
body.koe-skin { --notices-warning-color: var(--koe-ink); }
.koe-skin .wc-block-checkout__no-payment-methods-notice .wc-block-components-notice-banner__content { color: var(--koe-ink); }
/* Block checkout floating labels: WooCommerce sets line-height = font-size with overflow hidden, which clips Arabic glyphs */
.koe-skin .wc-block-components-text-input label,
.koe-skin .wc-block-components-combobox .wc-block-components-combobox-control label,
.koe-skin .wc-blocks-components-select__label { line-height: 1.35; }
/* WoodMart round labels are 50px wide: Arabic labels ("نفد المخزون") broke mid-word. Pill shape, never split a word. */
.koe-skin .product-labels .product-label,
.koe-skin .product-labels .product-label.wd-shape-round { white-space: nowrap; word-break: normal; overflow-wrap: normal; min-width: 0; max-width: none; width: auto; height: auto; min-height: 30px; padding: 6px 12px; border-radius: 999px; }
