/* ==========================================================================
   Kadopich — main stylesheet (v3, preview-aligned redesign)
   Brand: premium gift-wrapping shop. Red #fb2c36 + clean white.
   Signature: rounded cards + circular "+" add, soft confetti. RTL-first. Vazirmatn.
   ========================================================================== */

:root {
	/* Brand reds (preview palette: crimson #fb2c36 → deep #e01620) */
	--kp-red: #fb2c36;
	--kp-red-600: #e01620;
	--kp-red-700: #c1121f;
	--kp-red-grad: linear-gradient(135deg, #fb2c36 0%, #e01620 100%);

	/* Rose tints (ribbon/wrapping paper feel) */
	--kp-rose-50: #fff5f6;
	--kp-rose-100: #ffe6e8;
	--kp-rose-200: #ffd0d6;

	/* Neutrals (cool-leaning to let the red read true) */
	--kp-ink: #1f2433;
	--kp-ink-2: #5b6172;
	--kp-muted: #9aa0ae;
	--kp-cream: #fff6f6;
	--kp-surface: #ffffff;
	--kp-line: #eef0f4;
	--kp-line-2: #e2e5ec;

	/* States */
	--kp-success: #16a34a;
	--kp-success-soft: #e8f7ee;
	--kp-warn: #d97706;

	/* Radii */
	--kp-r-xs: 8px;
	--kp-r-sm: 12px;
	--kp-r: 16px;
	--kp-r-lg: 22px;
	--kp-r-card: 24px;
	--kp-r-xl: 30px;
	--kp-pill: 999px;

	/* Shadows (cool, layered) */
	--kp-sh-1: 0 1px 2px rgba(31,36,51,.05), 0 8px 24px -18px rgba(31,36,51,.22);
	--kp-sh-2: 0 10px 30px -16px rgba(31,36,51,.20), 0 20px 55px -36px rgba(31,36,51,.30);
	--kp-sh-red: 0 16px 40px -22px rgba(251,44,54,.45);
	--kp-sh-card: 0 18px 44px -30px rgba(31,36,51,.40);

	/* Layout */
	--kp-container: 1280px;
	--kp-gap: 22px;

	/* Type scale */
	--kp-fs-display: clamp(28px, 4.4vw, 46px);
	--kp-fs-h1: clamp(23px, 3vw, 32px);
	--kp-fs-h2: clamp(20px, 2.2vw, 27px);
	--kp-fs-body: 15px;
	--kp-fs-sm: 13px;
	--kp-fs-xs: 11.5px;

	--kp-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--kp-ink);
	background:
		radial-gradient(circle at 88% 2%, rgba(251,44,54,.10), transparent 27rem),
		linear-gradient(180deg, var(--kp-cream) 0%, #ffffff 34%, #ffffff 100%);
	background-attachment: fixed;
	font-size: var(--kp-fs-body);
	line-height: 1.75;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s var(--kp-ease); }
a:hover { color: var(--kp-red); }
h1, h2, h3, h4 { margin: 0 0 .55em; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--kp-rose-200); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--kp-rose-200); color: var(--kp-red-700); }

.kp-container { width: 100%; max-width: var(--kp-container); margin-inline: auto; padding-inline: 18px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; right: -9999px; }
.skip-link:focus { right: 12px; top: 12px; z-index: 9999; background: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--kp-sh-2); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.kp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 12px 22px; border-radius: var(--kp-pill);
	border: 1.5px solid transparent; font-weight: 700; font-size: 14px; line-height: 1;
	transition: transform .15s var(--kp-ease), box-shadow .2s var(--kp-ease), background .2s var(--kp-ease), color .2s var(--kp-ease), border-color .2s var(--kp-ease);
	white-space: nowrap;
}
.kp-btn:active { transform: translateY(1px); }
.kp-btn--lg { padding: 15px 30px; font-size: 15px; }
.kp-btn--primary { background: var(--kp-red-grad); color: #fff; box-shadow: 0 6px 18px rgba(251,44,54,.28); }
.kp-btn--primary:hover { color: #fff; box-shadow: var(--kp-sh-red); transform: translateY(-2px); }
.kp-btn--ghost { background: var(--kp-surface); color: var(--kp-ink); border-color: var(--kp-line-2); box-shadow: var(--kp-sh-1); }
.kp-btn--ghost:hover { border-color: var(--kp-red); color: var(--kp-red); transform: translateY(-2px); }
.kp-btn--white { background: #fff; color: var(--kp-red); }
.kp-btn--white:hover { background: var(--kp-rose-50); color: var(--kp-red-700); transform: translateY(-2px); }

/* ==========================================================================
   Topbar
   ========================================================================== */
.kp-topbar { background: #15181f; color: rgba(255,255,255,.92); font-size: 12.5px; font-weight: 500; }
.kp-topbar .kp-container { display: flex; gap: 9px; align-items: center; justify-content: center; padding-block: 9px; }
.kp-topbar svg { color: var(--kp-red); }

/* ==========================================================================
   Header
   ========================================================================== */
.kp-header { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--kp-line); }
.kp-header[data-sticky="1"] { position: sticky; top: 0; z-index: 90; }
.kp-header.is-stuck { box-shadow: var(--kp-sh-1); }
.kp-header__inner { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.kp-header__logo { flex-shrink: 0; }
.kp-logo--text { font-size: 26px; font-weight: 800; color: var(--kp-red); letter-spacing: -.02em; }
.custom-logo { max-height: 54px; width: auto; }
.kp-header__search { flex: 1; max-width: 580px; }

.kp-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--kp-line); border-radius: 16px; overflow: hidden; box-shadow: var(--kp-sh-1); transition: border-color .18s var(--kp-ease), box-shadow .18s var(--kp-ease); }
.kp-search:focus-within { border-color: var(--kp-red); box-shadow: 0 0 0 4px var(--kp-rose-100); }
.kp-search__input { flex: 1; border: 0; background: transparent; padding: 12px 18px; font-size: 14px; outline: 0; color: var(--kp-ink); }
.kp-search__input::placeholder { color: var(--kp-muted); }
.kp-search__btn { border: 0; background: transparent; color: var(--kp-red); padding: 0 16px; height: 46px; display: flex; align-items: center; transition: color .18s var(--kp-ease); }
.kp-search__btn:hover { color: var(--kp-red-600); }

.kp-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.kp-action { position: relative; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 15px; background: #fff; border: 1px solid var(--kp-line); box-shadow: var(--kp-sh-1); color: var(--kp-ink-2); transition: transform .18s var(--kp-ease), border-color .18s var(--kp-ease), color .18s var(--kp-ease); }
.kp-action:hover { transform: translateY(-2px); border-color: var(--kp-red); color: var(--kp-red); }
.kp-cart-count { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--kp-red); color: #fff; font-size: 11px; font-weight: 900; border-radius: var(--kp-pill); display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid #fff; }

/* ---------- Header mini-cart preview ---------- */
.kp-minicart { position: relative; }
.kp-minicart__panel {
	position: absolute; top: calc(100% + 12px); inset-inline-end: 0; width: 360px; max-width: calc(100vw - 32px);
	background: #fff; border: 1px solid var(--kp-line); border-radius: var(--kp-r); box-shadow: var(--kp-sh-2, 0 18px 50px rgba(0,0,0,.16));
	padding: 16px; z-index: 80; opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity .18s var(--kp-ease), transform .18s var(--kp-ease), visibility .18s var(--kp-ease);
}
.kp-minicart.is-open .kp-minicart__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.kp-minicart__panel::before {
	content: ''; position: absolute; top: -7px; inset-inline-end: 22px; width: 14px; height: 14px;
	background: #fff; border-inline-start: 1px solid var(--kp-line); border-block-start: 1px solid var(--kp-line); transform: rotate(45deg);
}
.kp-minicart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--kp-line); }
.kp-minicart__head span { font-size: 14px; font-weight: 800; color: var(--kp-ink); }
.kp-minicart__close { border: 0; background: transparent; color: var(--kp-muted); padding: 4px; border-radius: 8px; line-height: 0; cursor: pointer; }
.kp-minicart__close:hover { background: var(--kp-rose-50); color: var(--kp-red); }

/* WooCommerce mini-cart widget inside the panel */
.kp-minicart__panel .cart_list { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; }
.kp-minicart__panel .cart_list li {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
	padding: 12px 0 12px 30px; border-bottom: 1px solid var(--kp-line); font-size: 13px; margin: 0;
}
.kp-minicart__panel .cart_list li:last-child { border-bottom: 0; }
/* Product link = thumbnail + name on one neat line */
.kp-minicart__panel .cart_list li a:not(.remove) {
	flex: 1 1 auto; display: flex; align-items: center; gap: 10px;
	color: var(--kp-ink); font-weight: 700; line-height: 1.55; font-size: 13px;
}
.kp-minicart__panel .cart_list li img {
	width: 50px !important; height: 50px; object-fit: cover; border-radius: 12px;
	margin: 0 !important; float: none !important; flex-shrink: 0; border: 1px solid var(--kp-line);
}
.kp-minicart__panel .cart_list li .quantity {
	flex: 1 1 100%; padding-inline-start: 62px; color: var(--kp-muted); font-size: 12.5px; font-weight: 600;
}
.kp-minicart__panel .cart_list a.remove {
	position: absolute; top: 50%; inset-inline-start: 0; transform: translateY(-50%); margin: 0;
	width: 22px; height: 22px; line-height: 20px; font-size: 15px; text-align: center; border-radius: 50%;
	color: var(--kp-red) !important; background: var(--kp-rose-50);
}
.kp-minicart__panel .cart_list a.remove:hover { background: var(--kp-red) !important; color: #fff !important; }
.kp-minicart__panel .woocommerce-mini-cart__total {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 0 4px; font-size: 15px; font-weight: 800; color: var(--kp-ink); border-top: 1px solid var(--kp-line); margin-top: 6px;
}
.kp-minicart__panel .woocommerce-mini-cart__total .woocommerce-Price-amount { color: var(--kp-red); }
.kp-minicart__panel .woocommerce-mini-cart__buttons { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; }
.kp-minicart__panel .woocommerce-mini-cart__buttons .button { flex: 1 1 0; text-align: center; padding: 12px; font-size: 13px; margin: 0; }
/* "View cart" as the quiet option, checkout as the primary red action */
.kp-minicart__panel .woocommerce-mini-cart__buttons .button:not(.checkout) {
	background: #fff !important; color: var(--kp-ink) !important; border: 1.5px solid var(--kp-line-2); box-shadow: none;
}
.kp-minicart__panel .woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: var(--kp-cream) !important; color: var(--kp-ink) !important; transform: none; box-shadow: none; }
.kp-minicart__panel .woocommerce-mini-cart__buttons .button.checkout { order: 2; }
.kp-minicart__panel .woocommerce-mini-cart__empty-message { padding: 22px 0; text-align: center; color: var(--kp-muted); font-size: 14px; margin: 0; }

.kp-burger { display: none; border: 0; background: transparent; padding: 8px; color: var(--kp-ink); border-radius: 12px; }
.kp-burger:hover { background: var(--kp-rose-50); color: var(--kp-red); }

/* Nav (menu-row) */
.kp-nav { background: transparent; border-top: 1px solid var(--kp-line); }
.kp-nav__inner { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.kp-nav__cats { position: relative; }
.kp-nav__cats-btn { display: flex; align-items: center; gap: 9px; background: var(--kp-red-grad); color: #fff; border: 0; padding: 11px 18px; border-radius: 15px; font-weight: 800; font-size: 13.5px; box-shadow: 0 12px 24px -16px var(--kp-red); transition: transform .15s var(--kp-ease), box-shadow .2s var(--kp-ease); }
.kp-nav__cats-btn:hover { transform: translateY(-1px); box-shadow: var(--kp-sh-red); }
.kp-nav__cats-panel {
	position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 260px;
	background: #fff; border: 1px solid var(--kp-line); border-radius: var(--kp-r); box-shadow: var(--kp-sh-2);
	padding: 10px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98);
	transform-origin: top; transition: all .2s var(--kp-ease);
}
.kp-nav__cats-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.kp-nav__cats-panel li a { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 11px; font-size: 14px; font-weight: 500; }
.kp-nav__cats-panel li a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--kp-rose-200); transition: background .18s var(--kp-ease); }
.kp-nav__cats-panel li a:hover { background: var(--kp-rose-50); color: var(--kp-red); }
.kp-nav__cats-panel li a:hover::before { background: var(--kp-red); }

.kp-menu { display: flex; align-items: center; gap: 22px; }
.kp-menu > li > a { display: block; padding: 8px 2px; font-size: 13.5px; font-weight: 700; color: var(--kp-ink-2); }
.kp-menu > li > a:hover { background: transparent; color: var(--kp-red); }
.kp-menu li { position: relative; }
.kp-menu .sub-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; background: #fff; border: 1px solid var(--kp-line); border-radius: var(--kp-r); box-shadow: var(--kp-sh-2); padding: 10px; min-width: 210px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--kp-ease); }
.kp-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.kp-menu .sub-menu a { display: block; padding: 9px 13px; border-radius: 10px; font-size: 13px; }
.kp-menu .sub-menu a:hover { background: var(--kp-rose-50); color: var(--kp-red); }

/* Sticky behaviour lives on .kp-header[data-sticky="1"] (always sticky) + the
   JS-toggled .is-stuck shadow above. No transform animation (avoids scroll jump). */

/* ==========================================================================
   Mobile off-canvas drawer  (was missing — now fully styled)
   ========================================================================== */
.kp-drawer { position: fixed; inset: 0; z-index: 200; }
.kp-drawer[hidden] { display: none; }
.kp-drawer__backdrop { position: absolute; inset: 0; background: rgba(34,26,28,.5); opacity: 0; transition: opacity .28s var(--kp-ease); backdrop-filter: blur(2px); }
.kp-drawer.is-open .kp-drawer__backdrop { opacity: 1; }
.kp-drawer__panel {
	position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 350px);
	background: var(--kp-cream); box-shadow: var(--kp-sh-2); display: flex; flex-direction: column;
	transform: translateX(-100%); transition: transform .32s var(--kp-ease); overflow-y: auto;
}
/* RTL: panel is anchored at inset-inline-start (= right edge) via logical props
   already; we ONLY flip the physical translate so it hides off the right. */
[dir="rtl"] .kp-drawer__panel { transform: translateX(100%); }
.kp-drawer.is-open .kp-drawer__panel { transform: translateX(0); }

/* Colorful brand header (red gradient + confetti) */
.kp-drawer__head {
	position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 20px; background: var(--kp-red-grad); color: #fff; box-shadow: 0 8px 20px rgba(251,44,54,.2); overflow: hidden;
}
.kp-drawer__head::before {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
	background-image: radial-gradient(circle, rgba(255,255,255,.25) 2px, transparent 2.5px);
	background-size: 22px 22px;
}
.kp-drawer__title { position: relative; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.kp-drawer__title::before { content: '🎁'; font-size: 18px; }
.kp-drawer__close { position: relative; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.2); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: background .18s var(--kp-ease); }
.kp-drawer__close:hover { background: rgba(255,255,255,.34); }

.kp-drawer__search { padding: 16px 18px; background: #fff; border-bottom: 1px solid var(--kp-line); }
.kp-drawer__nav { padding: 14px 14px 32px; }
.kp-drawer__subtitle { font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: var(--kp-red); margin: 16px 8px 12px; display: flex; align-items: center; gap: 10px; }
.kp-drawer__subtitle::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(to left, var(--kp-rose-200), transparent); }

/* Category/menu items — soft pills with colored dot, gradient on hover */
.kp-drawer__menu li a, .kp-drawer__nav .kp-drawer__menu li a {
	display: flex; align-items: center; gap: 11px; padding: 12px 14px; margin-bottom: 7px;
	border-radius: 14px; font-size: 14.5px; font-weight: 600; color: var(--kp-ink);
	background: #fff; border: 1px solid var(--kp-line); box-shadow: var(--kp-sh-1);
	transition: transform .16s var(--kp-ease), background .16s var(--kp-ease), color .16s var(--kp-ease), border-color .16s var(--kp-ease), box-shadow .16s var(--kp-ease);
}
.kp-drawer__menu li a::before { content: ''; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--kp-rose-200); transition: background .16s var(--kp-ease); }
.kp-drawer__menu li a::after { content: ''; width: 7px; height: 7px; margin-inline-start: auto; flex-shrink: 0; border-top: 2px solid var(--kp-line-2); border-inline-start: 2px solid var(--kp-line-2); transform: rotate(-45deg); transition: border-color .16s var(--kp-ease); }
[dir="rtl"] .kp-drawer__menu li a::after { transform: rotate(135deg); }
.kp-drawer__menu li a:hover, .kp-drawer__menu li a:focus-visible {
	background: var(--kp-red-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(251,44,54,.24);
	transform: translateX(-3px);
}
[dir="rtl"] .kp-drawer__menu li a:hover, [dir="rtl"] .kp-drawer__menu li a:focus-visible { transform: translateX(3px); }
.kp-drawer__menu li a:hover::before { background: #fff; }
.kp-drawer__menu li a:hover::after { border-color: #fff; }
.kp-drawer__menu .sub-menu { padding-inline-start: 12px; margin-top: 2px; }
.kp-drawer__menu .sub-menu a { font-size: 13.5px; color: var(--kp-ink-2); background: var(--kp-cream); box-shadow: none; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.kp-breadcrumb { background: transparent; border: 0; }
.kp-breadcrumb .kp-container { }
.kp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding-block: 16px; font-size: 12.5px; color: var(--kp-muted); }
.kp-breadcrumb li { display: flex; align-items: center; gap: 7px; }
.kp-breadcrumb li:not(:last-child)::after { content: '⟨'; color: var(--kp-line-2); font-size: 12px; }
.kp-breadcrumb a:hover { color: var(--kp-red); }
.kp-breadcrumb [aria-current="page"] { color: var(--kp-ink-2); font-weight: 600; }

/* ==========================================================================
   Section heads — RIBBON signature
   ========================================================================== */
.kp-section { padding-block: 56px; }
.kp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.kp-section__title { font-size: var(--kp-fs-h2); position: relative; padding-bottom: 14px; margin: 0; }
.kp-section__title::after {
	content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
	width: 54px; height: 5px; border-radius: var(--kp-pill);
	background: var(--kp-red-grad);
}
/* little ribbon knot */
.kp-section__title::before {
	content: ''; position: absolute; bottom: -1px; inset-inline-start: 24px;
	width: 7px; height: 7px; border-radius: 50%; background: var(--kp-red-700);
}
.kp-section__more { font-size: 13px; color: var(--kp-red); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; padding: 8px 4px; }
.kp-section__more:hover { gap: 9px; }

/* ==========================================================================
   Hero — the thesis: a wrapped gift + balloons
   ========================================================================== */
.kp-hero { position: relative; background: radial-gradient(120% 120% at 85% 10%, var(--kp-rose-100) 0%, var(--kp-cream) 48%); overflow: hidden; }
.kp-hero::before { /* confetti dots, ambient */
	content: ''; position: absolute; inset: 0;
	background-image:
		radial-gradient(circle, var(--kp-rose-200) 2px, transparent 2.5px),
		radial-gradient(circle, var(--kp-red) 1.5px, transparent 2px);
	background-size: 46px 46px, 70px 70px;
	background-position: 0 0, 30px 30px;
	opacity: .35; pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
	        mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.kp-hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 36px; padding-block: 64px; }
.kp-hero__badge { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--kp-red); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: var(--kp-pill); box-shadow: var(--kp-sh-1); }
.kp-hero__title { font-size: var(--kp-fs-display); line-height: 1.25; margin: 18px 0 16px; letter-spacing: -.02em; }
.kp-hero__title span { color: var(--kp-red); }
.kp-hero__subtitle { font-size: 16px; color: var(--kp-ink-2); max-width: 540px; margin-bottom: 28px; }
.kp-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.kp-hero__media { display: flex; justify-content: center; }
.kp-hero__art { position: relative; width: min(360px, 80vw); aspect-ratio: 1; }
.kp-hero__gift { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(110px, 22vw, 170px); filter: drop-shadow(0 18px 26px rgba(251,44,54,.22)); animation: kp-float 5.5s var(--kp-ease) infinite; }
.kp-hero__bubble { position: absolute; border-radius: 50%; }
.kp-hero__bubble.b1 { width: 96px; height: 96px; background: radial-gradient(circle at 35% 30%, #ff8a8a, var(--kp-red)); top: 4px; inset-inline-end: 22px; opacity: .9; box-shadow: 0 10px 24px rgba(251,44,54,.28); animation: kp-float 5s var(--kp-ease) infinite; }
.kp-hero__bubble.b2 { width: 60px; height: 60px; background: radial-gradient(circle at 35% 30%, #fff, var(--kp-rose-200)); bottom: 26px; inset-inline-start: 0; box-shadow: var(--kp-sh-1); animation: kp-float 6.5s var(--kp-ease) infinite; }
.kp-hero__bubble.b3 { width: 46px; height: 46px; background: radial-gradient(circle at 35% 30%, #ff6a6a, var(--kp-red-700)); bottom: 70px; inset-inline-end: 6px; opacity: .85; animation: kp-float 4.5s var(--kp-ease) infinite; }
@keyframes kp-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-2deg); } }

/* ==========================================================================
   Feature strip
   ========================================================================== */
.kp-features { background: var(--kp-surface); border-block: 1px solid var(--kp-line); }
.kp-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--kp-gap); padding-block: 26px; }
.kp-feature { display: flex; align-items: center; gap: 14px; }
.kp-feature__icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--kp-rose-50); color: var(--kp-red); border-radius: 16px; }
.kp-feature__text { display: flex; flex-direction: column; gap: 2px; }
.kp-feature__text strong { font-size: 14.5px; font-weight: 700; }
.kp-feature__text span { font-size: 12.5px; color: var(--kp-muted); }

/* ==========================================================================
   Categories
   ========================================================================== */
.kp-cats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--kp-gap); }
.kp-cat-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 10px; background: var(--kp-surface); border: 1px solid var(--kp-line); border-radius: var(--kp-r); text-align: center; transition: transform .2s var(--kp-ease), box-shadow .2s var(--kp-ease), border-color .2s var(--kp-ease); }
.kp-cat-card:hover { transform: translateY(-5px); box-shadow: var(--kp-sh-2); border-color: transparent; }
.kp-cat-card__media { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; background: var(--kp-rose-50); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 4px #fff, var(--kp-sh-1); }
.kp-cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.kp-cat-card__ph { color: var(--kp-red); }
.kp-cat-card__name { font-size: 13.5px; font-weight: 700; }

/* ==========================================================================
   Product grid & cards
   ========================================================================== */
.kp-products.columns-4, ul.products.columns-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--kp-gap); margin: 0; padding: 0; }
.kp-card { list-style: none; }
.kp-card__inner {
	position: relative; background: var(--kp-surface); border: 1px solid var(--kp-line);
	border-radius: var(--kp-r-card); overflow: hidden; height: 100%; display: flex; flex-direction: column;
	box-shadow: var(--kp-sh-1);
	transition: transform .24s var(--kp-ease), box-shadow .24s var(--kp-ease), border-color .24s var(--kp-ease);
}
.kp-card__inner:hover { transform: translateY(-5px); box-shadow: var(--kp-sh-card); border-color: var(--kp-rose-200); }

/* Media — soft gradient stage, image fills (cover). */
.kp-card__media {
	position: relative; aspect-ratio: 1; overflow: hidden; display: block;
	background: linear-gradient(150deg, #ffffff 0%, #f6f7fb 60%, var(--kp-rose-50) 100%);
}
.kp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--kp-ease); }
.kp-card__inner:hover .kp-card__media img { transform: scale(1.05); }

/* Tag/badge pills (top-right physical corner, matching the preview). */
.kp-card__badges { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.kp-badge { font-size: 11px; font-weight: 900; line-height: 1; padding: 6px 11px; border-radius: var(--kp-pill); box-shadow: var(--kp-sh-1); }
.kp-badge--sale { background: var(--kp-red-grad); color: #fff; }
.kp-badge--new { background: #fff; color: var(--kp-red); border: 1px solid var(--kp-rose-200); }
.kp-badge--out { background: var(--kp-ink); color: #fff; }

/* Hover quick-actions (wishlist etc) — opposite corner to the badge. */
.kp-card__actions { position: absolute; top: 14px; inset-inline-end: 14px; display: flex; flex-direction: column; gap: 7px; opacity: 0; transform: translateX(-8px); transition: opacity .2s var(--kp-ease), transform .2s var(--kp-ease); z-index: 3; }
[dir="rtl"] .kp-card__actions { transform: translateX(8px); }
.kp-card__inner:hover .kp-card__actions { opacity: 1; transform: translateX(0); }
.kp-card__act { width: 38px; height: 38px; border-radius: 13px; background: #fff; border: 1px solid var(--kp-line); display: flex; align-items: center; justify-content: center; color: var(--kp-ink); box-shadow: var(--kp-sh-1); transition: color .18s var(--kp-ease), border-color .18s var(--kp-ease); }
.kp-card__act:hover { color: var(--kp-red); border-color: var(--kp-red); }

/* Body */
.kp-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kp-card__cat { font-size: 11.5px; color: var(--kp-muted); font-weight: 700; }
.kp-card__title { font-size: 14px; font-weight: 800; line-height: 1.7; margin: 0; color: var(--kp-ink); }
.kp-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.72em; color: inherit; }
.kp-card__title a:hover { color: var(--kp-red); }
.kp-card__colors { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.kp-card__color { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.kp-card__color--more { width: auto; height: 15px; box-shadow: none; font-size: 10.5px; color: var(--kp-muted); display: flex; align-items: center; }
.kp-card__rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #efa00b; font-weight: 600; }

/* Footer — price (red) on one side, signature circular "+" add button on the other.
   Price flexes + shrinks (overflow-wrap) so even a very long value never collides
   with the fixed-size add button. */
.kp-card__footer { margin-top: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--kp-line); }
.kp-card__price { flex: 1 1 auto; min-width: 0; font-weight: 900; font-size: 15.5px; line-height: 1.35; color: var(--kp-red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-card__price del { color: var(--kp-muted); font-weight: 500; font-size: 11.5px; margin-inline-end: 6px; }
.kp-card__price ins { text-decoration: none; color: var(--kp-red); }
.kp-card__price .woocommerce-Price-currencySymbol { font-size: 11.5px; font-weight: 700; color: var(--kp-muted); margin-inline-start: 3px; }

/* Custom add-to-cart: a compact rounded-square icon button showing "+".
   The "+" is drawn from two centered bars (font-independent → always perfectly
   centered). The link text stays in the DOM (font-size:0) for screen readers. */
.kp-card .button, .kp-card__add {
	position: relative; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 14px;
	background: var(--kp-red); color: transparent; display: inline-flex; align-items: center; justify-content: center;
	font-size: 0; line-height: 0; white-space: nowrap; overflow: hidden;
	box-shadow: 0 8px 16px -10px var(--kp-red);
	transition: background .18s var(--kp-ease), transform .18s var(--kp-ease), box-shadow .18s var(--kp-ease);
}
.kp-card .button::before, .kp-card .button::after,
.kp-card__add::before, .kp-card__add::after {
	content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	background: #fff; border-radius: 2px;
}
.kp-card .button::before, .kp-card__add::before { width: 16px; height: 2.5px; } /* horizontal */
.kp-card .button::after, .kp-card__add::after { width: 2.5px; height: 16px; }  /* vertical */
.kp-card .button:hover, .kp-card__add:hover { background: var(--kp-ink); transform: translateY(-2px); }
.kp-card .added_to_cart { display: none; }
/* Specificity guard: beat WooCommerce core's `.woocommerce a.button` on any page
   that renders products inside a `.woocommerce` wrapper (shortcodes, blocks) even
   when the shop-only woocommerce.css is not enqueued. */
.woocommerce .kp-card a.button, .woocommerce .kp-card__add {
	position: relative; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border-radius: 14px;
	background: var(--kp-red); color: transparent; font-size: 0;
}
.woocommerce .kp-card a.button:hover, .woocommerce .kp-card__add:hover { background: var(--kp-ink); color: transparent; }

/* ==========================================================================
   Free-shipping progress
   ========================================================================== */
.kp-freeship { background: var(--kp-rose-50); border: 1px solid var(--kp-rose-200); border-radius: var(--kp-r); padding: 14px 18px; margin-bottom: 20px; }
.kp-freeship__text { margin: 0 0 9px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kp-freeship__text--done { color: var(--kp-success); margin: 0; }
.kp-freeship__bar { height: 8px; background: #fff; border-radius: var(--kp-pill); overflow: hidden; box-shadow: inset 0 0 0 1px var(--kp-rose-200); }
.kp-freeship__bar span { display: block; height: 100%; background: var(--kp-red-grad); border-radius: var(--kp-pill); transition: width .5s var(--kp-ease); }

/* ==========================================================================
   Gift CTA / Occasions / FAQ / Blog
   ========================================================================== */
.kp-giftcta { padding-block: 0; }
.kp-giftcta__inner { position: relative; background: var(--kp-red-grad); color: #fff; border-radius: var(--kp-r-xl); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-block: 56px; overflow: hidden; box-shadow: var(--kp-sh-red); }
.kp-giftcta__inner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.18) 2px, transparent 2.5px); background-size: 30px 30px; opacity: .6; }
.kp-giftcta__text { position: relative; }
.kp-giftcta__text h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.kp-giftcta__text p { margin-bottom: 22px; opacity: .96; max-width: 460px; }
.kp-giftcta__emoji { position: relative; font-size: clamp(64px, 9vw, 104px); filter: drop-shadow(0 10px 18px rgba(0,0,0,.2)); }

.kp-occasions__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--kp-gap); }
.kp-occasion { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 10px; border-radius: var(--kp-r); background: var(--kp-surface); border: 1px solid var(--kp-line); transition: transform .2s var(--kp-ease), box-shadow .2s var(--kp-ease), border-color .2s var(--kp-ease); }
.kp-occasion:hover { transform: translateY(-5px); box-shadow: var(--kp-sh-2); border-color: transparent; }
.kp-occasion__emoji { font-size: 36px; }
.kp-occasion__name { font-size: 13.5px; font-weight: 700; }

.kp-faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 840px; margin-inline: auto; }
.kp-faq__item { background: var(--kp-surface); border: 1px solid var(--kp-line); border-radius: var(--kp-r); padding: 4px 20px; transition: box-shadow .2s var(--kp-ease), border-color .2s var(--kp-ease); }
.kp-faq__item[open] { border-color: var(--kp-rose-200); box-shadow: var(--kp-sh-1); }
.kp-faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 15px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kp-faq__item summary::-webkit-details-marker { display: none; }
.kp-faq__item summary::after { content: '＋'; color: var(--kp-red); font-size: 20px; flex-shrink: 0; transition: transform .2s var(--kp-ease); }
.kp-faq__item[open] summary::after { content: '－'; }
.kp-faq__answer { padding-bottom: 16px; color: var(--kp-ink-2); font-size: 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.kp-footer { background: #15181f; color: rgba(255,255,255,.72); margin-top: 56px; }
.kp-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding-block: 48px 30px; }
.kp-widget__title, .kp-footer .kp-widget__title { font-size: 15px; margin-bottom: 16px; font-weight: 800; color: #fff; }
.kp-footer__about p { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.95; }
.kp-footer__logo { margin-bottom: 14px; }
.kp-footer__logo .kp-logo--text { color: #fff; }
.kp-footer__list li { margin-bottom: 10px; }
.kp-footer__list a { font-size: 13.5px; color: rgba(255,255,255,.68); }
.kp-footer__list a:hover { color: #ff8a92; padding-inline-start: 4px; }
.kp-footer__phone { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; margin-top: 16px; color: #fff; }
.kp-footer__phone svg { color: var(--kp-red); }
.kp-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.kp-footer__social a { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .18s var(--kp-ease); }
.kp-footer__social a:hover { background: var(--kp-red); border-color: var(--kp-red); color: #fff; transform: translateY(-3px); }
.kp-trust-placeholder { min-height: 102px; padding: 18px; border: 1px dashed rgba(255,255,255,.22); border-radius: var(--kp-r-lg); color: rgba(255,255,255,.45); font-size: 12px; text-align: center; display: grid; place-items: center; }
.kp-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.kp-footer__bottom p { text-align: center; padding-block: 16px; margin: 0; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ==========================================================================
   Blog / posts / article
   ========================================================================== */
.kp-content { padding-block: 36px; min-height: 50vh; }
.kp-posts { display: flex; flex-direction: column; gap: 20px; }
.kp-posts--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--kp-gap); }
.kp-post-card { display: flex; gap: 18px; background: var(--kp-surface); border: 1px solid var(--kp-line); border-radius: var(--kp-r); overflow: hidden; transition: box-shadow .2s var(--kp-ease), transform .2s var(--kp-ease); }
.kp-post-card:hover { box-shadow: var(--kp-sh-2); transform: translateY(-3px); }
.kp-post-card--compact { flex-direction: column; }
.kp-post-card__thumb { flex-shrink: 0; width: 230px; overflow: hidden; }
.kp-post-card--compact .kp-post-card__thumb { width: 100%; aspect-ratio: 16/10; }
.kp-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kp-post-card__body { padding: 18px; display: flex; flex-direction: column; }
.kp-post-card__title { font-size: 17px; }
.kp-post-card--compact .kp-post-card__title { font-size: 15.5px; }
.kp-post-card__meta { display: flex; gap: 14px; color: var(--kp-muted); font-size: 12px; margin-block: 8px; }
.kp-post-card__excerpt { color: var(--kp-ink-2); font-size: 14px; }
.kp-readmore { color: var(--kp-red); font-weight: 700; font-size: 13px; margin-top: auto; }

.kp-archive__head { padding-block: 8px 4px; }
.kp-archive__title { font-size: var(--kp-fs-h1); }
.kp-archive__desc { color: var(--kp-muted); }

.kp-article { max-width: 820px; margin-inline: auto; }
.kp-article__title { font-size: var(--kp-fs-h1); }
.kp-article__meta { display: flex; gap: 16px; color: var(--kp-muted); font-size: 13px; margin-bottom: 20px; }
.kp-article__thumb { border-radius: var(--kp-r-lg); overflow: hidden; margin-bottom: 26px; }
.kp-article__content { font-size: 16.5px; line-height: 2.05; }
.kp-article__content h2 { font-size: 23px; margin-top: 1.7em; }
.kp-article__content img { border-radius: var(--kp-r); margin-block: 1.2em; }
.kp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.kp-tags a { background: var(--kp-rose-50); color: var(--kp-red); padding: 6px 14px; border-radius: var(--kp-pill); font-size: 12.5px; font-weight: 600; }
.kp-related { margin-top: 48px; }

.kp-page__title { font-size: var(--kp-fs-h1); margin-bottom: 18px; }
.kp-page__content { font-size: 16px; line-height: 2; }

/* ==========================================================================
   404
   ========================================================================== */
.kp-404 { display: flex; align-items: center; justify-content: center; padding-block: 72px; }
.kp-404__box { text-align: center; max-width: 500px; }
.kp-404__code { font-size: clamp(80px, 16vw, 120px); font-weight: 800; background: var(--kp-red-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.kp-404__title { font-size: var(--kp-fs-h2); margin-top: 8px; }
.kp-404__actions { display: flex; gap: 12px; justify-content: center; margin-block: 26px; flex-wrap: wrap; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.woocommerce-pagination ul, .pagination .nav-links { display: flex; gap: 7px; justify-content: center; padding: 36px 0; flex-wrap: wrap; }
.woocommerce-pagination ul { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span, .page-numbers {
	display: flex !important; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--kp-line-2) !important; border-radius: 13px; font-weight: 700; font-size: 14px; background: #fff; color: var(--kp-ink);
	transition: all .15s var(--kp-ease);
}
.page-numbers.current { background: var(--kp-red-grad); color: #fff; border-color: transparent !important; }
.page-numbers:hover:not(.current) { border-color: var(--kp-red) !important; color: var(--kp-red); }

.kp-empty { text-align: center; padding: 60px 0; color: var(--kp-muted); font-size: 15px; }

/* ==========================================================================
   Skeleton + reveal
   ========================================================================== */
@keyframes kp-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.kp-skel__img, .kp-skel__line, .kp-skel__hero { background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%); background-size: 400% 100%; animation: kp-shimmer 1.3s ease infinite; border-radius: 10px; }
.kp-skel--grid, .kp-skel--card { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--kp-gap); }
.kp-skel__card { border: 1px solid var(--kp-line); border-radius: var(--kp-r); padding: 14px; }
.kp-skel__img { aspect-ratio: 1; margin-bottom: 14px; }
.kp-skel__line { height: 14px; margin-bottom: 9px; }
.kp-skel__line--short { width: 60%; }
.kp-skel__hero { height: 340px; border-radius: var(--kp-r-xl); }

[data-kp-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--kp-ease), transform .55s var(--kp-ease); }
[data-kp-reveal].is-revealed { opacity: 1; transform: translateY(0); }
.no-js [data-kp-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.kp-products.columns-4, ul.products.columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kp-cats-grid, .kp-occasions__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
	.kp-nav { display: none; }
	.kp-burger { display: block; }
	.kp-header__search { display: none; }
	.kp-hero__inner { grid-template-columns: 1fr; text-align: center; padding-block: 48px; }
	.kp-hero__cta { justify-content: center; }
	.kp-hero__subtitle { margin-inline: auto; }
	.kp-hero__media { display: none; }
	.kp-features__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.kp-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.kp-posts--grid { grid-template-columns: 1fr 1fr; }
	.kp-section { padding-block: 44px; }
}
@media (max-width: 600px) {
	.kp-products.columns-4, ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
	.kp-cats-grid, .kp-occasions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
	.kp-skel--grid, .kp-skel--card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kp-giftcta__inner { flex-direction: column; text-align: center; padding: 30px; }
	.kp-post-card { flex-direction: column; }
	.kp-post-card__thumb { width: 100%; aspect-ratio: 16/10; }
	.kp-posts--grid { grid-template-columns: 1fr; }
	.kp-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.kp-section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	[data-kp-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   v3 additions — slider, banner, category strip, nav skeleton, card polish
   ========================================================================== */

/* ---------- Hero image slider ---------- */
.kp-hero--image { background: transparent; padding-block: 22px 8px; }
.kp-hero--image::before { display: none; }
.kp-slider { position: relative; border-radius: var(--kp-r-xl); overflow: hidden; box-shadow: var(--kp-sh-2); background: var(--kp-rose-50); }
.kp-slider__track { position: relative; aspect-ratio: 1280 / 440; }
.kp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--kp-ease); display: block; }
.kp-slide.is-active { opacity: 1; }
.kp-slide img { width: 100%; height: 100%; object-fit: cover; }
.kp-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--kp-ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--kp-sh-1); z-index: 3; transition: background .15s var(--kp-ease); }
.kp-slider__nav:hover { background: #fff; color: var(--kp-red); }
.kp-slider__nav--prev { inset-inline-start: 16px; }
.kp-slider__nav--next { inset-inline-end: 16px; }
[dir="rtl"] .kp-slider__nav--next svg { transform: scaleX(-1); }
[dir="rtl"] .kp-slider__nav--prev svg { transform: scaleX(1); }
.kp-slider__dots { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.kp-slider__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; transition: all .2s var(--kp-ease); }
.kp-slider__dot.is-active { background: #fff; width: 26px; border-radius: var(--kp-pill); }

/* ---------- Promo banner band ---------- */
.kp-banner { padding-block: 0; margin-block: 14px; }
.kp-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 168px; padding: 32px 38px; border-radius: var(--kp-r-xl); background: var(--kp-red-grad); color: #fff; background-size: cover; background-position: center; overflow: hidden; box-shadow: var(--kp-sh-2); transition: transform .2s var(--kp-ease); }
.kp-banner__inner:hover { transform: translateY(-3px); }
.kp-banner__inner.has-image { color: #fff; }
.kp-banner__text h2 { color: #fff; font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 8px; }
.kp-banner__text p { opacity: .95; margin: 0 0 14px; max-width: 520px; }
.kp-banner__cta { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--kp-red); font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: var(--kp-pill); }
[dir="rtl"] .kp-banner__cta svg { transform: scaleX(-1); }
.kp-banner__emoji { font-size: 72px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.2)); }

/* ---------- Category strip (archive) ---------- */
.kp-catstrip { margin-block: 8px 22px; }
.kp-catstrip__scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.kp-catstrip__scroll::-webkit-scrollbar { height: 6px; }
.kp-catstrip__scroll::-webkit-scrollbar-thumb { background: var(--kp-line-2); border-radius: 999px; }
.kp-catchip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; padding: 14px 8px; background: var(--kp-surface); border: 1px solid var(--kp-line); border-radius: var(--kp-r); transition: all .18s var(--kp-ease); }
.kp-catchip:hover { border-color: var(--kp-red); transform: translateY(-3px); box-shadow: var(--kp-sh-1); }
.kp-catchip.is-active { border-color: var(--kp-red); background: var(--kp-rose-50); }
.kp-catchip__media { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--kp-rose-50); display: flex; align-items: center; justify-content: center; color: var(--kp-red); }
.kp-catchip__media img { width: 100%; height: 100%; object-fit: cover; }
.kp-catchip__name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Instant nav loading bar (#23) ---------- */
.kp-navload { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; }
.kp-navload.is-active { opacity: 1; }
.kp-navload__bar { height: 100%; width: 0; background: var(--kp-red-grad); box-shadow: 0 0 10px rgba(251,44,54,.5); }
.kp-navload.is-active .kp-navload__bar { animation: kp-navbar 1.4s var(--kp-ease) forwards; }
@keyframes kp-navbar { 0% { width: 0; } 50% { width: 70%; } 100% { width: 92%; } }

/* ---------- Card refinements (#13 #20) ---------- */
.kp-badge--sale { box-shadow: 0 6px 14px -6px var(--kp-red); }

/* ---------- Dashboard quick cards (account) ---------- */
.kpc-dash__hi { font-size: 17px; }
.kpc-dash__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.kpc-dash__card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border: 1px solid var(--kp-line); border-radius: var(--kp-r); background: var(--kp-cream); transition: all .18s var(--kp-ease); }
.kpc-dash__card:hover { border-color: var(--kp-red); transform: translateY(-3px); box-shadow: var(--kp-sh-1); }
.kpc-dash__ico { font-size: 30px; }
.kpc-dash__t { font-size: 13.5px; font-weight: 700; color: var(--kp-ink); }
.kpc-field-hint { display: block; font-size: 12px; color: var(--kp-muted); margin-top: 6px; }
.kpc-login-wrap { max-width: 440px; margin-inline: auto; }

/* ---------- Responsive for new bits ---------- */
@media (max-width: 880px) {
	.kp-slider__track { aspect-ratio: 16 / 10; }
	.kp-banner__inner { flex-direction: column; text-align: center; padding: 26px; }
	.kpc-dash__cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.kp-slider__track { aspect-ratio: 4 / 3; }
	.kp-slider__nav { width: 38px; height: 38px; }
	.kp-catchip { width: 82px; }
	.kp-catchip__media { width: 52px; height: 52px; }
}

/* ==========================================================================
   Mobile hardening — kill horizontal overflow + tighten small screens
   Fixes: whole layout rendering wider than the device (content cut off at the
   page edge). Any single overflowing element used to widen <body>, and because
   every section uses .kp-container (width:100%), they all blew past the viewport.
   ========================================================================== */

/* 1) Clip horizontal overflow at the root. `clip` (not `hidden`) is used so the
      sticky header keeps working — overflow-y stays visible. */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }

/* 2) Never let media or embeds push the page wider than the screen. */
img, svg, video, iframe, table { max-width: 100%; }

/* 3) Break long unbreakable strings (URLs, long Persian words, prices). */
body { overflow-wrap: break-word; word-wrap: break-word; }

/* 4) Allow flex/grid children to shrink below their content size. Without
      min-width:0 a single wide child forces its container past the viewport.
      Crucially, grid items (.kp-card / li.product) must get min-width:0 so the
      `1fr` tracks (which default to a min-content floor) can shrink — otherwise
      the long, nowrap "add to cart" button forces every card ~200px wide and the
      2-up grid blows past the screen. */
.kp-header__inner, .kp-nav__inner, .kp-actions,
.kp-feature, .kp-feature__text,
.kp-card, .kp-card__inner, .kp-card__body, .kp-card__footer,
.kp-products > .product, ul.products > .product,
.kp-post-card, .kp-post-card__body,
.kp-banner__inner, .kp-banner__text,
.kp-giftcta__inner, .kp-giftcta__text,
.kp-topbar .kp-container,
.kp-section__head { min-width: 0; }

/* 5) Small-phone refinements (≤ 600px). */
@media (max-width: 600px) {
	/* Tighter, edge-safe gutters so cards/grids breathe on narrow screens. */
	.kp-container { padding-inline: 14px; }

	/* Header row: smaller gap + cap the logo so burger + logo + actions fit. */
	.kp-header__inner { gap: 10px; }
	.kp-logo--text { font-size: 21px; }
	.custom-logo { max-height: 42px; }
	.kp-action { width: 42px; height: 42px; }

	/* Topbar announcement: smaller text, allow wrapping, no overflow. */
	.kp-topbar { font-size: 11.5px; }
	.kp-topbar .kp-container { gap: 6px; padding-inline: 14px; }
	.kp-topbar__text { text-align: center; }

	/* Features: a single readable column instead of cramped two-up. */
	.kp-features__grid { grid-template-columns: 1fr; gap: 14px; }

	/* Hero text sizing comfortable on small screens. */
	.kp-hero__subtitle { font-size: 15px; }

	/* Section vertical rhythm a touch tighter. */
	.kp-section { padding-block: 36px; }

	/* Product card on phones: the circular add button is fixed-size, so price +
	   button share one row safely (price can shrink, button never grows). */
	.kp-card__footer { flex-direction: row; flex-wrap: nowrap; gap: 8px; align-items: center; }
	.kp-card__price { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
	.kp-card__add, .kp-card .button { flex: 0 0 40px; width: 40px; height: 40px; }
	.kp-card__body { padding: 13px 13px 14px; }
	.kp-card__title { font-size: 13px; }
}

/* 6) Very small phones (≤ 380px): drop categories/occasions to 2-up so cards
      don't get crushed. */
@media (max-width: 380px) {
	.kp-cats-grid, .kp-occasions__grid { grid-template-columns: repeat(2, 1fr); }
}

/* NOTE: shop/archive product-card styling (incl. the mobile "one rectangular
   card per row" layout) lives in woocommerce.css, scoped to .kp-woo-main —
   that's the real wrapper WooCommerce renders via woocommerce.php. */
