/* =====================================================================
 * 1. DESIGN TOKENS
 * ===================================================================== */
:root {
    /* 1.1 Color palette */
    --ink: #141414;
    --ink-muted: #6B6660;
    --ink-disabled: #A8A39C;
    --primary: #0E4F4A;
    --primary-dark: #0A3A36;
    --primary-soft: #E7F1EF;
    --primary-focus: rgba(14,79,74,0.15);
    --accent: #C8892B;
    --accent-dark: #A9701E;
    --accent-soft: #FBF1DE;
    --sand: #F7F2EA;
    --surface: #FFFFFF;
    --surface-alt: #FAF7F1;
    --line: #E8E2D7;
    --line-strong: #D6CEBF;
    --danger: #B23A2F;
    --danger-soft: #FBECEA;
    --success: #2F7D4F;
    --success-soft: #E8F1EC;
    --overlay: rgba(20,20,20,0.55);
    --warning: #C07A1A;

    /* 1.1b Extended palette — category tile accent tints */
    --mustard-soft:    #F5ECD9;
    --terracotta-soft: #F3DFD0;
    --sand-deeper:     #EDE4D4;

    /* 1.1c Font stack + aliases */
    --font-sans: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif;
    --rule: var(--line);

    /* 1.2 Typography scale — 8pt grid: 12/14/16/20/28/40/48/56 */
    --fs-small:   12px;
    --fs-body:    14px;
    --fs-body-lg: 16px;
    --fs-h5:      20px;
    --fs-h4:      28px;
    --fs-h3:      40px;
    --fs-h2:      48px;
    --fs-h1:      56px;

    /* Legacy aliases so old --fs-* references don't break */
    --fs-display: 56px;
    --fs-body-l:  16px;
    --fs-eyebrow: 12px;
    --fs-price:   20px;
    --fs-button:  15px;
    --fs-button-lg: 16px;

    /* Font-weight tokens */
    --fw-body:    400;
    --fw-medium:  500;
    --fw-h5:      600;
    --fw-h4:      700;
    --fw-h3:      800;
    --fw-h2:      800;
    --fw-h1:      900;

    /* Legacy weight aliases */
    --fw-display: 800;
    --fw-h3-old:  700;  /* kept for backward compat */
    --fw-small:   500;
    --fw-eyebrow: 600;
    --fw-price:   700;
    --fw-button:  700;
    --fw-button-lg: 800;

    /* Line-heights — Persian optimised */
    --lh-body:    1.8;
    --lh-heading: 1.3;

    /* Legacy lh aliases */
    --lh-display: 1.3;
    --lh-h2:      1.3;
    --lh-h3:      1.3;
    --lh-h4:      1.5;
    --lh-h5:      1.55;
    --lh-body-l:  1.8;
    --lh-small:   1.69;
    --lh-eyebrow: 1.50;
    --lh-price:   1.40;

    /* 1.3 Spacing — strict 8pt grid */
    --s-1:  4px;
    --s-2:  8px;
    --s-3:  12px;
    --s-4:  16px;
    --s-5:  24px;
    --s-6:  32px;
    --s-7:  48px;
    --s-8:  64px;
    --s-9:  96px;
    /* Legacy aliases (keep old scale names alive) */
    --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-30: 120px;

    /* Section padding helpers (block-start inline-end block-end inline-start) */
    --pad-sec-m: 56px 20px 64px 20px;
    --pad-sec-t: 80px 28px 96px 28px;
    --pad-sec-d: 96px 48px 120px 48px;

    /* 1.4 Radii */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 100px;
    --r-btn: var(--r-sm);
    --r-input: var(--r-sm);
    --r-card: var(--r-lg);
    --r-hero: var(--r-xl);
    /* legacy compatibility */
    --r-section: var(--r-xl);

    /* 1.5 Shadows */
    --e0: inset 0 0 0 1px var(--line);
    --e1: 0 1px 2px rgba(20,20,20,.04), 0 2px 8px rgba(20,20,20,.05);
    --e2: 0 6px 18px rgba(20,20,20,.08), 0 2px 4px rgba(20,20,20,.04);
    --e3: 0 18px 48px rgba(14,79,74,.18);

    /* 1.6 Motion */
    --d-1: 120ms;
    --d-2: 220ms;
    --d-3: 380ms;
    --d-4: 600ms;
    --ease: cubic-bezier(.2,.7,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-in: cubic-bezier(.4,0,1,1);

    /* 1.7 Z-index registry */
    --z-base: 0;
    --z-raised: 10;
    --z-sticky-footer: 80;
    --z-header: 100;
    --z-drawer: 900;
    --z-scrim: 950;
    --z-modal: 1000;
    --z-toast: 1100;
    --z-tooltip: 1200;
}

/* =====================================================================
 * 2. GLOBAL RESET / TYPOGRAPHY
 * ===================================================================== */
html, body {
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font-sans);
    font-feature-settings: "ss02" on, "ss03" on;
    line-height: var(--lh-body);
}
h1, h2, h3, h4, h5, h6 { line-height: var(--lh-heading); }
/* Form controls don't inherit the UA font by default. */
button, input, textarea, select, optgroup { font-family: inherit; }
/* Zero-specificity (:where) so plugin/icon-font classes (.dashicons, .fa…) still win. */
body :where(p, li, a, span, div, label, td, th, h1, h2, h3, h4, h5, h6, small, strong, em, b, blockquote, figcaption, summary, dt, dd, legend, time) {
    font-family: var(--font-sans);
}
/* Plugin wrappers that declare an unloaded face (IRANSans) on the container itself. */
body .kj-wizard, body .kj-result { font-family: var(--font-sans); }
h1, h2, h3, h4, h5, h6,
.entry-title, .wp-block-heading, .elementor-heading-title,
.woocommerce-loop-product__title, .product_title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-sans);
    color: var(--ink);
    letter-spacing: -0.01em;
    font-feature-settings: "ss02" on;
}
.price, .woocommerce-Price-amount, .amount {
    font-family: var(--font-sans);
    color: var(--ink) !important;
    font-weight: 700;
    font-feature-settings: "ss02" on;
}
a { color: var(--primary); transition: color var(--d-2) var(--ease); }
a:hover { color: var(--accent); }

/* Focus rings — only for keyboard */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
    outline: 3px solid var(--primary-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
 * 3. CONTAINER + LEGACY HELPERS
 * ===================================================================== */
.kk-c-container {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 20px;
}
@media (min-width: 640px)  { .kk-c-container { padding-inline: 28px; } }
@media (min-width: 1024px) { .kk-c-container { padding-inline: 48px; } }

.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1240px; }

/* Legacy helpers (kept as aliases) */
.kk-eyebrow, .kk-c-eyebrow {
    display: inline-block;
    color: #8A4A1E;
    font-size: var(--fs-small);
    line-height: var(--lh-eyebrow);
    font-weight: var(--fw-h5);
    letter-spacing: 0.10em;
    margin-bottom: var(--s-3);
}
.kk-chip, .kk-c-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--r-pill);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1;
    height: 28px;
}
.kk-c-chip--md { height: 32px; padding: 8px 16px; }
.kk-c-chip--primary, .kk-chip--primary { background: var(--primary-soft); color: var(--primary); }
.kk-c-chip--accent  { background: var(--accent-soft);  color: var(--accent); }
.kk-c-chip--neutral { background: var(--sand);         color: var(--ink-muted); }
.kk-c-chip--success { background: var(--success-soft); color: var(--success); }
.kk-c-chip--danger  { background: var(--danger-soft);  color: var(--danger); }
.kk-c-chip--count {
    position: absolute; inset-block-start: -6px; inset-inline-end: -6px;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700;
    border-radius: var(--r-pill);
    display: inline-flex; align-items: center; justify-content: center;
}

.kk-frame {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-6);
    box-shadow: var(--e1);
}

/* Legacy button aliases — route to .kk-c-button tokens */
.kk-btn-primary, a.kk-btn-primary,
.kk-c-button.kk-c-button--primary {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: 0 20px; height: 44px;
    background: var(--primary); color: #fff !important;
    border-radius: var(--r-btn);
    font-weight: var(--fw-button); font-size: var(--fs-button); line-height: 1;
    text-decoration: none; border: 0; cursor: pointer;
    transition: background var(--d-2) var(--ease);
}
.kk-btn-primary:hover, .kk-c-button--primary:hover { background: var(--primary-dark); color: #fff !important; }

.kk-btn-ghost, a.kk-btn-ghost,
.kk-c-button.kk-c-button--ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: 0 20px; height: 44px;
    background: transparent; color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    border-radius: var(--r-btn);
    font-weight: var(--fw-button); font-size: var(--fs-button); line-height: 1;
    text-decoration: none; cursor: pointer;
    transition: background var(--d-2) var(--ease);
}
.kk-btn-ghost:hover, .kk-c-button--ghost:hover { background: var(--primary-soft); }

.kk-btn-accent, a.kk-btn-accent,
.kk-c-button.kk-c-button--accent {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: 0 28px; height: 52px;
    background: var(--accent); color: var(--ink) !important;
    border-radius: var(--r-btn);
    font-weight: var(--fw-button-lg); font-size: var(--fs-button-lg); line-height: 1;
    text-decoration: none; cursor: pointer;
    transition: filter var(--d-2) var(--ease);
}
.kk-btn-accent:hover, .kk-c-button--accent:hover { filter: brightness(1.04); }

.kk-price { font-size: var(--fs-price); line-height: var(--lh-price); font-weight: var(--fw-price); color: var(--ink); }
.kk-price small { font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); margin-right: var(--s-1); }

/* =====================================================================
 * 4. COMPONENT LIBRARY — .kk-c-*
 * ===================================================================== */

/* 4.1 Button primitive */
.kk-c-button {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--s-2);
    border: 0; cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    border-radius: var(--r-btn);
    transition: background var(--d-2) var(--ease), color var(--d-2) var(--ease), filter var(--d-2) var(--ease), transform var(--d-1) var(--ease);
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.kk-c-button:focus-visible { outline: 3px solid var(--primary-focus); outline-offset: 2px; }
.kk-c-button__icon { display: inline-flex; align-items: center; }
.kk-c-button__label { line-height: 1; }
/* sizes */
.kk-c-button--sm { height: 36px; padding: 0 14px; font-size: var(--fs-button); font-weight: var(--fw-button); }
.kk-c-button--md { height: 44px; padding: 0 20px; font-size: var(--fs-button); font-weight: var(--fw-button); }
.kk-c-button--lg { height: 52px; padding: 0 28px; font-size: var(--fs-button); font-weight: var(--fw-button); }
.kk-c-button--xl { height: 60px; padding: 0 32px; font-size: var(--fs-button-lg); font-weight: var(--fw-button-lg); }
/* variants */
.kk-c-button--primary { background: var(--primary); color: #fff; }
.kk-c-button--primary:hover { background: var(--primary-dark); color: #fff; }
.kk-c-button--ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.kk-c-button--ghost:hover { background: var(--primary-soft); }
.kk-c-button--ghost:active { transform: translateY(1px); }
.kk-c-button--accent { background: var(--accent); color: var(--ink); font-weight: var(--fw-button-lg); }
.kk-c-button--accent:hover { filter: brightness(1.04); }
.kk-c-button--text {
    background: transparent; color: var(--primary);
    height: auto; padding: 8px;
}
.kk-c-button--text:hover { text-decoration: underline; text-decoration-color: var(--accent); color: var(--primary); }
.kk-c-button--danger { background: var(--danger); color: #fff; }
.kk-c-button--danger:hover { filter: brightness(1.05); }
/* modifiers */
.kk-c-button--block { width: 100%; }
.kk-c-button--pill { border-radius: var(--r-pill); }
.kk-c-button--loading { pointer-events: none; position: relative; }
.kk-c-button--loading .kk-c-button__label { opacity: .7; }
/* disabled */
.kk-c-button:disabled, .kk-c-button[aria-disabled="true"] {
    background: var(--line); color: var(--ink-disabled); cursor: not-allowed; border-color: var(--line);
}
.kk-c-button:disabled:hover { background: var(--line); filter: none; }

/* 4.2 Icon-button */
.kk-c-icon-button {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; cursor: pointer; background: transparent;
    border-radius: 50%;
    transition: background var(--d-2) var(--ease), transform var(--d-1) var(--ease), box-shadow var(--d-2) var(--ease);
}
.kk-c-icon-button--40 { width: 40px; height: 40px; }
.kk-c-icon-button--48 { width: 48px; height: 48px; }
.kk-c-icon-button--surface { background: var(--surface); box-shadow: var(--e1); }
.kk-c-icon-button--surface:hover { transform: translateY(-1px); box-shadow: var(--e2); }
.kk-c-icon-button--ghost { background: transparent; color: var(--primary); }
.kk-c-icon-button--ghost:hover { background: var(--primary-soft); }
.kk-c-icon-button--filled { background: var(--accent); color: var(--ink); }
.kk-c-icon-button:active { transform: scale(.96); }
.kk-c-icon-button:focus-visible { outline: 3px solid var(--primary-focus); outline-offset: 2px; }

/* 4.3 Input */
.kk-c-input { display: flex; flex-direction: column; gap: var(--s-2); }
.kk-c-input__label { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.kk-c-input__field-wrap { position: relative; display: flex; align-items: center; }
.kk-c-input__field {
    width: 100%; height: 48px; padding: 0 16px;
    background: var(--sand); border: 1px solid var(--line);
    border-radius: var(--r-input);
    font-size: 16px; color: var(--ink);
    font-family: inherit;
    text-align: right; direction: rtl;
    transition: border-color var(--d-2) var(--ease), background var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
.kk-c-input__field::placeholder { color: var(--ink-muted); opacity: 1; }
.kk-c-input__field:hover { border-color: var(--line-strong); }
.kk-c-input__field:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}
.kk-c-input__field:disabled { background: var(--line); color: var(--ink-disabled); cursor: not-allowed; }
.kk-c-input--lg .kk-c-input__field { height: 56px; font-size: 17px; }
.kk-c-input__suffix {
    position: absolute; inset-inline-start: 12px;
    color: var(--ink-muted); font-size: var(--fs-small); font-weight: 500;
    pointer-events: none;
}
.kk-c-input__helper { font-size: var(--fs-small); color: var(--ink-muted); }
.kk-c-input__error {
    font-size: var(--fs-small); font-weight: 500; color: var(--danger);
    display: flex; align-items: center; gap: 6px;
}
.kk-c-input__error::before { content: "⚠"; font-size: 14px; }
.kk-c-input--error .kk-c-input__field {
    border-color: var(--danger); background: var(--danger-soft);
}
.kk-c-input--success .kk-c-input__field { border-color: var(--success); }

/* 4.4 Textarea */
.kk-c-textarea { display: flex; flex-direction: column; gap: var(--s-2); position: relative; }
.kk-c-textarea__field {
    width: 100%; min-height: 120px; padding: 14px 16px;
    background: var(--sand); border: 1px solid var(--line);
    border-radius: var(--r-input);
    font-size: 16px; color: var(--ink);
    font-family: inherit;
    resize: vertical;
    direction: rtl;
    transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
.kk-c-textarea__field:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}
.kk-c-textarea__counter {
    position: absolute; inset-block-end: 8px; inset-inline-start: 12px;
    font-size: 12px; font-weight: 500; color: var(--ink-muted);
}

/* 4.5 Select */
.kk-c-select { position: relative; display: flex; flex-direction: column; gap: var(--s-2); }
.kk-c-select__field {
    width: 100%; height: 48px; padding: 0 44px 0 16px;
    background: var(--sand); border: 1px solid var(--line);
    border-radius: var(--r-input);
    font-size: 16px; color: var(--ink); font-family: inherit;
    appearance: none; -webkit-appearance: none;
    direction: rtl;
    transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
.kk-c-select__field:focus-visible {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}
.kk-c-select__chevron {
    position: absolute; inset-inline-start: 16px; inset-block-end: 14px;
    pointer-events: none; color: var(--ink-muted);
    transition: transform var(--d-2) var(--ease);
}
.kk-c-select__field:focus ~ .kk-c-select__chevron { transform: rotate(180deg); color: var(--primary); }

/* 4.6 Checkbox + Radio */
.kk-c-check, .kk-c-radio {
    display: inline-flex; align-items: center; gap: var(--s-2);
    cursor: pointer; padding: 11px 0;
    font-size: var(--fs-body);
}
.kk-c-check__input, .kk-c-radio__input { position: absolute; opacity: 0; pointer-events: none; }
.kk-c-check__box, .kk-c-radio__box {
    width: 22px; height: 22px;
    border: 1.5px solid var(--line); background: var(--surface);
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.kk-c-radio__box { border-radius: 50%; }
.kk-c-check__input:checked + .kk-c-check__box {
    background: var(--primary); border-color: var(--primary);
}
.kk-c-check__input:checked + .kk-c-check__box::after {
    content: ""; width: 10px; height: 5px;
    border: 2px solid #fff; border-top: 0; border-right: 0;
    transform: rotate(-45deg) translate(1px,-1px);
}
.kk-c-radio__input:checked + .kk-c-radio__box {
    border-color: var(--primary);
}
.kk-c-radio__input:checked + .kk-c-radio__box::after {
    content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
}
.kk-c-check__input:focus-visible + .kk-c-check__box,
.kk-c-radio__input:focus-visible + .kk-c-radio__box {
    box-shadow: 0 0 0 3px var(--primary-focus);
}
.kk-c-check__input:disabled + .kk-c-check__box,
.kk-c-radio__input:disabled + .kk-c-radio__box { background: var(--line); border-color: var(--line); }

/* 4.7 Toggle */
.kk-c-toggle {
    position: relative; display: inline-block;
    width: 44px; height: 24px;
}
.kk-c-toggle__input { opacity: 0; width: 0; height: 0; }
.kk-c-toggle__track {
    position: absolute; inset: 0;
    background: var(--line); border-radius: var(--r-pill);
    transition: background var(--d-2) var(--ease);
    cursor: pointer;
}
.kk-c-toggle__track::before {
    content: ""; position: absolute;
    width: 20px; height: 20px; top: 2px; inset-inline-end: 2px;
    background: #fff; border-radius: 50%;
    transition: transform var(--d-2) var(--ease);
    box-shadow: var(--e1);
}
.kk-c-toggle__input:checked + .kk-c-toggle__track { background: var(--primary); }
.kk-c-toggle__input:checked + .kk-c-toggle__track::before { transform: translateX(-20px); }

/* 4.8 Slider */
.kk-c-slider { width: 100%; }
.kk-c-slider__range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px;
    background: var(--line); border-radius: var(--r-pill);
    outline: none;
}
.kk-c-slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); border: 3px solid var(--accent);
    box-shadow: var(--e1);
    cursor: pointer;
    transition: box-shadow var(--d-1) var(--ease);
}
.kk-c-slider__range::-moz-range-thumb {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); border: 3px solid var(--accent);
    box-shadow: var(--e1); cursor: pointer;
}
.kk-c-slider__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--primary-focus); }
.kk-c-slider__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-bottom: 4px; }

/* 4.9 Progress */
.kk-c-progress { display: flex; flex-direction: column; gap: 8px; }
.kk-c-progress--segmented { display: flex; gap: 6px; }
.kk-c-progress--segmented .kk-c-progress__seg {
    flex: 1; height: 6px; background: var(--line);
    border-radius: var(--r-pill); overflow: hidden;
}
.kk-c-progress--segmented .kk-c-progress__seg--done { background: var(--primary); }
.kk-c-progress--segmented .kk-c-progress__seg--current::after {
    content: ""; display: block; width: 60%; height: 100%;
    background: var(--primary);
    animation: kkSegPulse 1.2s var(--ease) infinite;
}
@keyframes kkSegPulse { 0%,100%{opacity:.7} 50%{opacity:1} }

.kk-c-progress--linear {
    width: 100%; height: 6px; background: var(--line);
    border-radius: var(--r-pill); overflow: hidden;
}
.kk-c-progress--linear::before {
    content: ""; display: block; height: 100%;
    width: var(--value, 0%);
    background: var(--primary);
    transition: width var(--d-3) var(--ease);
}

.kk-c-progress--dots { display: flex; gap: 8px; justify-content: center; }
.kk-c-progress__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--line);
    transition: background var(--d-2) var(--ease), transform var(--d-2) var(--ease);
    cursor: pointer; border: 0;
}
.kk-c-progress__dot--active { background: var(--primary); transform: scale(1.25); }

/* 4.11 Eyebrow already defined above */

/* 4.12 Section header */
.kk-c-section-header {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
}
.kk-c-section-header--center { text-align: center; align-items: center; }
.kk-c-section-header--start { text-align: start; align-items: flex-start; }
.kk-c-section-header--with-link {
    flex-direction: row; justify-content: space-between; align-items: center; gap: var(--s-6);
}
.kk-c-section-header--with-link .kk-c-section-header__text { flex: 1; }
.kk-c-section-header__title {
    font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: var(--fw-h4);
    color: var(--ink); margin: 0;
    letter-spacing: -0.01em;
}
.kk-c-section-header__sub {
    font-size: var(--fs-body); line-height: var(--lh-body);
    color: var(--ink-muted); margin: 8px 0 0;
    max-width: 60ch;
}

/* 4.13 Divider */
.kk-c-divider {
    border: 0; height: 1px; background: var(--line);
    margin-block: var(--s-6);
}
.kk-c-divider--flourish {
    position: relative; background: transparent;
    background-image: linear-gradient(to right, var(--line) 0%, var(--line) calc(50% - 8px), transparent calc(50% - 8px), transparent calc(50% + 8px), var(--line) calc(50% + 8px), var(--line) 100%);
}
.kk-c-divider--flourish::after {
    content: ""; position: absolute;
    left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.kk-c-divider--vertical {
    width: 1px; height: 40%; background: var(--line); margin-inline: var(--s-4); margin-block: 0;
    display: inline-block;
}

/* 4.14 Card */
.kk-c-card {
    background: var(--surface);
    border-radius: var(--r-card);
    display: grid;
    grid-template-rows: auto auto auto auto;
    transition: box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.kk-c-card--default  { border: 1px solid var(--line); box-shadow: var(--e1); }
.kk-c-card--elevated { border: 0; box-shadow: var(--e2); }
.kk-c-card--outlined { border: 1px solid var(--line); box-shadow: none; }
.kk-c-card--tinted   { background: var(--surface-alt); border: 0; box-shadow: none; }
.kk-c-card--p-sm { padding: var(--s-4); }
.kk-c-card--p-md { padding: var(--s-6); }
.kk-c-card--p-lg { padding: var(--s-8); }
.kk-c-card__header { }
.kk-c-card__media { margin-inline: calc(-1 * var(--s-6)); margin-block-start: calc(-1 * var(--s-6)); overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; }
.kk-c-card--p-sm .kk-c-card__media { margin-inline: calc(-1 * var(--s-4)); margin-block-start: calc(-1 * var(--s-4)); }
.kk-c-card--p-lg .kk-c-card__media { margin-inline: calc(-1 * var(--s-8)); margin-block-start: calc(-1 * var(--s-8)); }
.kk-c-card__body { }
.kk-c-card__footer { }

/* 4.15 Product card */
.kk-c-product-card {
    background: var(--surface);
    border-radius: var(--r-card);
    border: 1px solid var(--line);
    overflow: hidden;
    /* Equal heights across carousel peers via flex column */
    display: flex; flex-direction: column; height: 100%;
    transition: box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease);
    box-shadow: var(--e1);
}
.kk-c-product-card__media {
    position: relative;
    /* 1:1 image area — cleaner grid, uniform crop */
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    border-radius: var(--r-md);
    margin: var(--s-3);
}
.kk-c-product-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform var(--d-3) var(--ease);
}
/* Wishlist / save button — top-left corner in RTL (inset-inline-start = right visually in RTL).
   !important on background because mweb-digiland-pro applies a dark indigo to every <button>. */
.kk-c-product-card__wish,
.kk-c-product-card__wish:focus,
.kk-c-product-card__wish:active {
    position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 3;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.92) !important;
    background-color: rgba(255,255,255,0.92) !important;
    border: 0; border-radius: 50%; cursor: pointer;
    padding: 8px;
    box-shadow: 0 1px 4px rgba(20,20,20,0.12);
    transition: background var(--d-2) var(--ease), color var(--d-2) var(--ease);
    color: var(--ink-muted) !important;
}
.kk-c-product-card__wish:hover {
    background: var(--primary-soft) !important;
    background-color: var(--primary-soft) !important;
    color: var(--primary) !important;
}
.kk-c-product-card__wish:hover svg path { fill: var(--primary); stroke: var(--primary); }
.kk-c-product-card__wish svg { width: 20px; height: 20px; }
.kk-c-product-card__wish:focus-visible { outline: 3px solid var(--primary-focus); outline-offset: 2px; }

/* Badge cluster — top-right of media area */
.kk-c-product-card__badges {
    position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 3;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
/*
 * Badge variants — CSS is ready but PHP/JSX does NOT emit any badge markup yet
 * because we have no price-was / price-is / is-new API field at this time.
 * When the data is available, add spans with these classes inside .kk-c-product-card__badges.
 */
.kk-c-badge--new {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: var(--r-pill);
    background: var(--accent-soft); color: var(--accent);
    font-size: 11px; font-weight: 700; line-height: 1;
}
.kk-c-badge--sale {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: var(--r-pill);
    background: #B23A2F; color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1;
}

/* Legacy positional aliases kept for backward compatibility */
.kk-c-product-card__pill {
    position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2;
}
.kk-c-product-card__save {
    position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2;
}
.kk-c-product-card__body {
    padding: 0 var(--s-4) var(--s-3);
    display: flex; flex-direction: column; gap: 6px;
    flex: 1 1 auto; /* pushes footer to bottom */
}
.kk-c-product-card__vendor {
    font-size: var(--fs-small); font-weight: 500;
    color: var(--ink-muted); margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-height: 1.4em;
}
/* Vendor text wrapped in chip pill */
.kk-c-product-card__vendor .kk-c-chip {
    font-size: 11px; height: auto; padding: 3px 10px;
}
.kk-c-product-card__title {
    font-size: var(--fs-h5); line-height: 1.5; font-weight: var(--fw-h5);
    color: var(--ink); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    /* Reserve exactly 2 lines so short-title cards match long-title cards */
    min-height: calc(1.5em * 2);
}
.kk-c-product-card__price,
.kk-c-product-card__body .kk-c-price {
    margin-top: auto; /* price sticks to bottom of body area */
}
.kk-c-product-card__footer {
    padding: 0 var(--s-4) var(--s-4);
    flex: 0 0 auto; /* footer never grows — button stays at bottom */
}

/* Ghost CTA button with price-led hierarchy */
.kk-c-product-card__cta {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 10px 16px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--r-btn);
    font-family: inherit; font-weight: 700; font-size: var(--fs-button);
    text-decoration: none; cursor: pointer;
    transition: background var(--d-2) var(--ease), color var(--d-2) var(--ease);
    line-height: 1;
}
.kk-c-product-card__cta:hover { background: var(--primary); color: #fff; }
.kk-c-product-card__cta:focus-visible { outline: 3px solid var(--primary-focus); outline-offset: 2px; }
.kk-c-product-card__cta:active { transform: translateY(1px); }

/* Ensure carousel slides stretch so cards share the tallest peer's height */
.kk-c-carousel__track { align-items: stretch; }
.kk-c-carousel__slide { display: flex; }
.kk-c-carousel__slide > .kk-c-product-card { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) {
    .kk-c-product-card:hover { transform: translateY(-4px); box-shadow: var(--e2); }
    .kk-c-product-card:hover .kk-c-product-card__media img { transform: scale(1.03); }
}
.kk-c-product-card:focus-within { box-shadow: 0 0 0 3px var(--primary-focus), var(--e1); }

/* 4.16 Carousel */
.kk-c-carousel { position: relative; }
.kk-c-carousel__viewport { position: relative; overflow: hidden; }
.kk-c-carousel__track {
    display: flex; gap: 12px;
    list-style: none; padding: 4px 20px; margin: 0;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
}
.kk-c-carousel__track::-webkit-scrollbar { display: none; }
.kk-c-carousel__slide {
    flex: 0 0 72vw; scroll-snap-align: start; list-style: none;
}
.kk-c-carousel__arrow {
    display: none;
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2;
}
.kk-c-carousel__arrow--prev { inset-inline-end: -20px; }
.kk-c-carousel__arrow--next { inset-inline-start: -20px; }
.kk-c-carousel__dots { display: none; }
@media (min-width: 640px) {
    .kk-c-carousel__slide { flex-basis: 40%; }
    .kk-c-carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; padding: 0; list-style: none; }
}
@media (min-width: 1024px) {
    .kk-c-carousel__track { gap: 24px; padding: 4px 0; }
    .kk-c-carousel__slide { flex-basis: calc((100% - 72px) / 4); }
    .kk-c-carousel__arrow { display: inline-flex; }
}

/* 4.17 Tabs */
.kk-c-tabs__list {
    display: flex; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.kk-c-tabs__list::-webkit-scrollbar { display: none; }
.kk-c-tabs__tab {
    height: 44px; padding: 0 16px;
    background: transparent; border: 0; cursor: pointer;
    font-family: inherit; font-size: var(--fs-h5); font-weight: var(--fw-h5);
    color: var(--ink-muted);
    white-space: nowrap;
    position: relative;
    transition: color var(--d-2) var(--ease);
}
.kk-c-tabs__tab[aria-selected="true"], .kk-c-tabs__tab.is-active {
    color: var(--ink);
}
.kk-c-tabs__tab[aria-selected="true"]::after,
.kk-c-tabs__tab.is-active::after {
    content: ""; position: absolute; inset-inline: 12px; inset-block-end: -1px;
    height: 2px; background: var(--accent);
    border-radius: 2px;
}
.kk-c-tabs__panel { padding-block: var(--s-6); }
.kk-c-tabs__panel[hidden] { display: none; }

/* 4.18 Accordion */
.kk-c-accordion details {
    border-bottom: 1px solid var(--line);
    padding: var(--s-5) 0;
}
.kk-c-accordion summary, .kk-faq summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3);
    color: var(--ink);
}
.kk-c-accordion summary::-webkit-details-marker,
.kk-faq summary::-webkit-details-marker { display: none; }
.kk-c-accordion summary::after,
.kk-faq summary::after {
    content: "+"; font-size: 24px; color: var(--accent);
    transition: transform var(--d-2) var(--ease);
}
.kk-c-accordion details[open] summary::after,
.kk-faq details[open] summary::after { content: "−"; }
.kk-c-accordion [data-accordion-body],
.kk-c-accordion details > *:not(summary) {
    padding-top: 14px; padding-bottom: 6px;
    font-size: var(--fs-body-l); line-height: var(--lh-body-l);
    color: var(--ink-muted);
}

/* 4.19 Breadcrumbs */
.kk-c-breadcrumbs { font-size: var(--fs-small); color: var(--ink-muted); }
.kk-c-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.kk-c-breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.kk-c-breadcrumbs li + li::before { content: "←"; color: var(--ink-muted); }
.kk-c-breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.kk-c-breadcrumbs a:hover { color: var(--primary); }
.kk-c-breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* 4.20 Pagination */
.kk-c-pagination { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.kk-c-pagination__item {
    min-width: 40px; height: 40px; padding: 0 8px;
    border: 1px solid var(--line); background: var(--surface);
    border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--fs-body); font-weight: 600; color: var(--ink);
    text-decoration: none;
    transition: background var(--d-2) var(--ease);
    cursor: pointer;
}
.kk-c-pagination__item:hover { background: var(--primary-soft); }
.kk-c-pagination__item--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.kk-c-pagination__item--active:hover { background: var(--primary-dark); color: #fff; }

/* 4.21 Toast */
.kk-c-toast {
    position: fixed; inset-block-end: 20px; inset-inline-start: 20px;
    z-index: var(--z-toast);
    min-width: 280px; max-width: 420px;
    background: var(--surface); border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex; align-items: flex-start; gap: 12px;
    box-shadow: var(--e3);
    animation: kkToastIn var(--d-2) var(--ease);
}
.kk-c-toast--success { background: var(--success-soft); border-inline-start: 4px solid var(--success); color: var(--success); }
.kk-c-toast--error   { background: var(--danger-soft);  border-inline-start: 4px solid var(--danger);  color: var(--danger); }
.kk-c-toast--info    { background: var(--primary-soft); border-inline-start: 4px solid var(--primary); color: var(--primary); }
.kk-c-toast__body { flex: 1; font-size: var(--fs-body); color: var(--ink); }
.kk-c-toast__close { background: transparent; border: 0; cursor: pointer; color: var(--ink-muted); font-size: 18px; }
@keyframes kkToastIn { from { transform: translateY(12px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* 4.22 Empty state */
.kk-c-empty {
    max-width: 480px; margin: 0 auto;
    text-align: center;
    padding-block: var(--s-12);
    display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
}
.kk-c-empty__art { width: 120px; height: 120px; color: var(--line-strong); }
.kk-c-empty__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3); margin: 0; color: var(--ink); }
.kk-c-empty__body  { font-size: var(--fs-body-l); line-height: var(--lh-body-l); color: var(--ink-muted); margin: 0; }

/* 4.23 Skeleton */
.kk-c-skeleton {
    display: block;
    background: linear-gradient(
        90deg,
        var(--line)        0%,
        var(--line-strong) 40%,
        var(--line)        80%
    );
    background-size: 200% 100%;
    animation: kk-shimmer 1.4s infinite linear;
    border-radius: 4px;
}
@keyframes kk-shimmer {
    from { background-position:  200% 0; }
    to   { background-position: -200% 0; }
}
/* Legacy alias kept for backward compat */
@keyframes kkShimmer {
    from { background-position:  200% 0; }
    to   { background-position: -200% 0; }
}
.kk-c-skeleton--text   { height: 1em; }
.kk-c-skeleton--title  { height: 1.6em; }
.kk-c-skeleton--image  { aspect-ratio: 1 / 1; border-radius: var(--r-md); height: auto; }
.kk-c-skeleton--circle { border-radius: 50%; aspect-ratio: 1 / 1; }

/*
 * Full product-card shaped skeleton placeholder.
 * Usage: emit four of these inside a carousel track while data loads.
 * <li class="kk-c-carousel__slide">
 *   <div class="kk-c-skeleton--card" aria-hidden="true" role="presentation"></div>
 * </li>
 */
.kk-c-skeleton--card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    width: 100%; height: 100%;
    display: flex; flex-direction: column; gap: 0;
    /* No shimmer on the card shell — shimmer only on inner children */
    animation: none;
}
.kk-c-skeleton--card::before {
    /* Media area 1:1 */
    content: "";
    display: block;
    aspect-ratio: 1 / 1;
    margin: var(--s-3);
    border-radius: var(--r-md);
    background: linear-gradient(90deg, var(--line) 0%, var(--line-strong) 40%, var(--line) 80%);
    background-size: 200% 100%;
    animation: kk-shimmer 1.4s infinite linear;
}
.kk-c-skeleton--card::after {
    /* Text rows placeholder */
    content: "";
    display: block;
    flex: 1;
    margin: 0 var(--s-4) var(--s-4);
    border-radius: 6px;
    background: linear-gradient(90deg, var(--line) 0%, var(--line-strong) 40%, var(--line) 80%);
    background-size: 200% 100%;
    animation: kk-shimmer 1.4s infinite linear;
    animation-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
    .kk-c-skeleton,
    .kk-c-skeleton--card::before,
    .kk-c-skeleton--card::after {
        animation: none;
        background: var(--line);
    }
}

/* 4.24 Sticky footer */
.kk-c-sticky-footer {
    position: fixed; inset-inline: 0; inset-block-end: 0;
    z-index: var(--z-sticky-footer);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}
.kk-c-sticky-footer__actions { display: flex; gap: 12px; }
.kk-c-sticky-footer__actions > * { flex: 1; }
@media (min-width: 1024px) {
    .kk-c-sticky-footer { display: none; }
}

/* 4.25 Drawer */
.kk-c-drawer {
    position: fixed; inset-block: 0; inset-inline-end: 0;
    width: 320px; max-width: 90vw;
    background: var(--surface);
    z-index: var(--z-drawer);
    transform: translateX(100%);
    transition: transform var(--d-3) var(--ease);
    display: flex; flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}
.kk-c-drawer[aria-hidden="false"], .kk-c-drawer.is-open { transform: translateX(0); }
.kk-c-drawer__backdrop {
    position: fixed; inset: 0;
    background: var(--overlay);
    z-index: var(--z-scrim);
    opacity: 0; pointer-events: none;
    transition: opacity var(--d-2) var(--ease);
}
.kk-c-drawer.is-open + .kk-c-drawer__backdrop,
.kk-c-drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }
.kk-c-drawer__close { align-self: flex-start; margin: 8px; }
.kk-c-drawer__nav { display: flex; flex-direction: column; }
.kk-c-drawer__nav a {
    height: 48px; display: flex; align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-weight: 600;
}

/* 4.26 Top bar */
.kk-c-topbar {
    background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 20px; min-height: 36px;
    max-height: 44px;
    box-sizing: border-box;
}
/* Hide duplicate topbars: the Theme Builder header template 21 already ships
   the topbar; any second instance placed by the page builder is redundant. */
.elementor-location-header ~ * .kk-c-topbar,
.elementor-edit-area-active .kk-c-topbar + .kk-c-topbar,
body:not(.elementor-editor-active) .elementor-location-header + * .kk-c-topbar:not(:first-of-type) {
    display: none !important;
}
/* Defensive: Elementor section containing the topbar must not stretch vertically */
.elementor-section.elementor-top-section:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget > .elementor-widget-container > .kk-c-topbar),
.elementor-section.elementor-top-section.kk-section--topbar,
.elementor-section.elementor-top-section.kk-header-topbar {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.elementor-section.elementor-top-section.kk-header-topbar > .elementor-container {
    min-height: 0 !important;
}
.kk-header-topbar .elementor-column,
.kk-header-topbar .elementor-widget-wrap {
    min-height: 0 !important;
    align-content: center !important;
}

/* Eliminate any residual gap between header template sections
   (topbar → main nav). Elementor adds default widget/column/wrap margins. */
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget:not(:last-child) {
    margin: 0 !important;
}
.elementor-location-header .kk-header-topbar,
.elementor-location-header .kk-header-topbar > .elementor-container,
.elementor-location-header .kk-header-topbar .elementor-widget-wrap,
.elementor-location-header .kk-header-topbar .elementor-widget {
    padding-block: 0 !important;
}
.elementor-location-header .kk-header-main-wrap,
.elementor-location-header .kk-header-main-wrap > .elementor-container,
.elementor-location-header .kk-header-main-wrap .elementor-widget-wrap,
.elementor-location-header .kk-header-main-wrap .elementor-widget {
    padding-block: 0 !important;
    margin-block: 0 !important;
}
/* Belt-and-suspenders: pull any gap out of the HTML widgets themselves */
.elementor-location-header .kk-c-topbar,
.elementor-location-header .kk-c-header {
    margin: 0 !important;
}

/* Final nuke — remove EVERY padding & gap between topbar and header nav.
   Some Elementor default section padding (10px top/bottom) slips through
   the more specific rules above; this is a catch-all for the header area. */
.elementor-location-header,
.elementor-location-header > *,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-row,
.elementor-location-header .elementor-column-wrap,
.elementor-location-header .elementor-widget-wrap > .elementor-widget,
.elementor-location-header .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    min-height: 0 !important;
}
/* Restore only internal padding where we need it (inside .kk-c-header for breathing room) */
.elementor-location-header .kk-c-header__inner {
    padding-inline: 20px !important;
}
@media (min-width: 1024px) {
    .elementor-location-header .kk-c-header__inner {
        padding-inline: 48px !important;
    }
}

/* Paint the entire header location white so any residual gap between topbar
   and nav-row (from Elementor's flex stretching that our nukes can't cleanly
   remove) is invisible. The topbar sets its own teal bg, so that stays. */
.elementor-location-header {
    background: var(--surface);
}
.elementor-location-header .kk-header-topbar {
    background: var(--primary) !important;
    color: #fff;
}
.elementor-location-header .kk-header-main-wrap {
    background: var(--surface) !important;
}
/* Collapse the two header sections to their true content heights */
.elementor-location-header .kk-header-topbar .kk-c-topbar {
    display: flex; align-items: center; min-height: 36px;
}
.elementor-location-header .kk-header-main-wrap .kk-c-header {
    display: flex; align-items: center;
    margin: 0 !important;
}
/* Force the whole elementor section (the Elementor bg wrapper) to collapse */
.elementor-location-header .kk-header-main-wrap,
.elementor-location-header .kk-header-main-wrap > .elementor-container,
.elementor-location-header .kk-header-main-wrap > .elementor-container > .elementor-row,
.elementor-location-header .kk-header-main-wrap > .elementor-container > .elementor-column {
    height: auto !important;
    min-height: 0 !important;
}
.elementor-location-header .kk-header-main-wrap .elementor-element,
.elementor-location-header .kk-header-topbar .elementor-element {
    height: auto !important;
    min-height: 0 !important;
}

/* Elementor's "section-height-default" applies a minimum viewport-relative
   height to sections — breaks header layout. Force it to content-size. */
.elementor-location-header .elementor-section-height-default {
    min-height: 0 !important;
    height: auto !important;
}
.elementor-location-header .elementor-section-height-default > .elementor-container {
    min-height: 0 !important;
    height: auto !important;
    align-items: center !important;
}
/* Nuclear option for section-height-default:
   Elementor ships default min-height rules at various responsive scales on
   sections without an explicit height. Override them to intrinsic content. */
body .elementor-location-header .elementor-section,
body .elementor-location-header .elementor-section-height-default,
body .elementor-location-header .elementor-section-boxed > .elementor-container,
body .elementor-location-header [data-element_type="section"] {
    min-height: 0 !important;
    height: auto !important;
}
/* Inside the header-main-wrap section, let the .kk-c-header own the final
   height — 60/72px. Section collapses to fit. */
.elementor-location-header .kk-header-main-wrap .kk-c-header {
    height: 60px !important;
    min-height: 60px !important;
}
@media (min-width: 1024px) {
    .elementor-location-header .kk-header-main-wrap .kk-c-header {
        height: 72px !important;
        min-height: 72px !important;
    }
}
/* Header element = its inner row. Ensure centering. */
.elementor-location-header .kk-header-main-wrap > .elementor-container {
    align-items: stretch !important;
    min-height: 60px !important;
}
@media (min-width: 1024px) {
    .elementor-location-header .kk-header-main-wrap > .elementor-container {
        min-height: 72px !important;
    }
}
.kk-c-topbar__pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent); color: var(--ink);
    padding: 4px 14px; border-radius: var(--r-pill);
    font-weight: 700; text-decoration: none;
}
@media (max-width: 639px) {
    .kk-c-topbar__tagline { display: none; }
}

/* 4.27 Header */
.kk-c-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    height: 60px;
    display: flex; align-items: center;
}
@media (min-width: 1024px) { .kk-c-header { height: 72px; } }
.kk-c-header__inner {
    display: flex; align-items: center; gap: var(--s-5);
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--s-5);
    box-sizing: border-box;
}
@media (min-width: 768px)  { .kk-c-header__inner { padding-inline: var(--s-7); } }
@media (min-width: 1024px) { .kk-c-header__inner { padding-inline: var(--s-8); } }
.kk-c-header__nav { display: none; align-items: center; gap: var(--s-6); flex: 1 1 auto; justify-content: flex-end; }
@media (min-width: 1024px) {
    .kk-c-header__nav { display: flex; }
}
.kk-c-header__nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: var(--s-7);
}
/* Push the search button to the far inline-start (left in RTL) */
.kk-c-header__search-btn { margin-inline-start: auto; }
.kk-c-header__nav-list li { margin: 0; padding: 0; list-style: none; }
.kk-c-header__nav-list li::before { content: none; }
.kk-c-header__nav-list a,
.kk-c-header__nav > a {
    position: relative;
    color: var(--ink); font-weight: 600; font-size: var(--fs-body);
    text-decoration: none;
    padding: 10px 0;
    min-height: 44px; box-sizing: border-box;
    display: inline-flex; align-items: center;
    transition: color var(--d-2) var(--ease);
}
.kk-c-header__nav-list a::after,
.kk-c-header__nav > a::after {
    content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0;
    height: 2px; width: 0; background: var(--accent);
    transition: width var(--d-2) var(--ease);
}
.kk-c-header__nav-list a:hover,
.kk-c-header__nav > a:hover { color: var(--accent); }
.kk-c-header__nav-list a:hover::after,
.kk-c-header__nav > a:hover::after,
.kk-c-header__nav-list li.current-menu-item > a::after,
.kk-c-header__nav-list a.is-active::after { width: 100%; }

/* Logo — strip any underline leaking from generic <a> */
.kk-c-header__logo,
.kk-c-header__logo:hover,
.kk-c-header__logo:focus,
.kk-c-header__logo:visited { text-decoration: none !important; color: var(--ink); border: 0; }
.kk-c-header__logo::after,
.kk-c-header__logo::before { content: none !important; }
.kk-c-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}
.kk-c-header__logo svg { flex: 0 0 auto; display: block; }
.kk-c-header__brand {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.kk-c-header__brand { color: var(--ink); text-decoration: none; }

/* Header search trigger */
.kk-c-header__search-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 0; background: var(--primary-soft); color: var(--primary);
    border-radius: 50%; cursor: pointer;
    margin-inline-start: var(--s-2);
    transition: background var(--d-2) var(--ease), color var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.kk-c-header__search-btn:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.kk-c-header__search-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Search modal */
.jahizsaz-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(20,20,20,0.55);
    display: none; align-items: flex-start; justify-content: center;
    padding: 10vh var(--s-4) var(--s-4);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0;
    transition: opacity var(--d-2) var(--ease);
}
.jahizsaz-modal.is-open { display: flex; opacity: 1; }
.jahizsaz-modal__dialog {
    position: relative; width: 100%; max-width: 640px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: var(--s-6) var(--s-5) var(--s-5);
    transform: translateY(-8px);
    transition: transform var(--d-2) var(--ease);
}
.jahizsaz-modal.is-open .jahizsaz-modal__dialog { transform: translateY(0); }
.jahizsaz-modal__title {
    padding-inline-end: 52px; /* clear the 44px close button */
    font-size: 20px; font-weight: 700; color: var(--ink);
    margin: 0 0 var(--s-2);
}
.jahizsaz-modal__hint { font-size: 13px; color: var(--ink-muted); margin: 0 0 var(--s-4); }
.jahizsaz-modal__close {
    position: absolute; inset-block-start: 8px; inset-inline-end: 8px;
    width: 44px; height: 44px; border: 0; background: transparent;
    color: var(--ink-muted); cursor: pointer; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--d-2) var(--ease);
}
.jahizsaz-modal__close:hover { background: var(--sand, #F7F2EA); color: var(--ink); }
.jahizsaz-search-form { display: flex; gap: var(--s-2); align-items: stretch; }
.jahizsaz-search-form__input {
    flex: 1 1 auto; min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--sand, #FAF7F1);
    font: inherit; color: var(--ink); outline: none;
    transition: border-color var(--d-2) var(--ease), background var(--d-2) var(--ease);
}
.jahizsaz-search-form__input:focus { border-color: var(--primary); background: #fff; }
.jahizsaz-search-form__submit {
    flex: 0 0 auto; padding: 12px 22px; min-height: 44px;
    background: var(--primary); color: #fff; border: 0; border-radius: 999px;
    font: inherit; font-weight: 600; cursor: pointer;
    transition: background var(--d-2) var(--ease);
}
.jahizsaz-search-form__submit:hover { background: var(--primary-dark, var(--primary)); }
.jahizsaz-modal__suggest { margin-block-start: var(--s-4); }
.jahizsaz-modal__suggest-label { font-size: 12px; color: var(--ink-muted); margin: 0 0 var(--s-2); }
.jahizsaz-modal__suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jahizsaz-modal__suggest-chip {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 6px 16px; border-radius: 999px;
    background: var(--accent-soft); color: var(--ink);
    font-size: 13px; text-decoration: none;
    transition: background var(--d-2) var(--ease), color var(--d-2) var(--ease);
}
.jahizsaz-modal__suggest-chip:hover { background: var(--primary); color: #fff; }
body.jahizsaz-modal-open { overflow: hidden; }

/* Toast (copy feedback) */
.jahizsaz-toast {
    position: fixed; inset-block-end: 24px; inset-inline-start: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--ink, #141414); color: #fff;
    padding: 10px 20px; border-radius: 999px;
    font-size: 14px; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 10000; opacity: 0; pointer-events: none;
    transition: opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.jahizsaz-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
 * Search page — reuses bsa-carousel (same as homepage sections)
 * ===================================================================== */
.jahizsaz-search { padding-block: var(--s-6); }
.jahizsaz-search__header { margin-block: var(--s-4) var(--s-6); }
.jahizsaz-search__header .jahizsaz-search__results-title { text-align: center; margin-block-end: var(--s-4); }
.jahizsaz-search__form {
    display: flex; gap: 8px; align-items: stretch;
    max-width: 640px; margin-inline: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.jahizsaz-search__input {
    flex: 1 1 auto; min-width: 0;
    padding: 10px 18px; border: 0; background: transparent;
    font: inherit; color: var(--ink); outline: none;
}
.jahizsaz-search__submit {
    flex: 0 0 auto; width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background var(--d-2) var(--ease);
}
.jahizsaz-search__submit:hover { background: var(--primary-dark, var(--primary)); }

/* Results header */
.jahizsaz-search__results-head { margin-block: var(--s-5) var(--s-4); }
.jahizsaz-search__results-title {
    font-size: clamp(20px, 2.6vw, 26px); font-weight: 700;
    color: var(--ink); margin: 0; line-height: 1.35;
}
.jahizsaz-search__results-title span { color: var(--primary); }
.jahizsaz-search__results-sub {
    font-size: 13px; color: var(--ink-muted);
    margin: 6px 0 0;
}

/* Product grid — uses the shared .kk-c-product-card.
   1 col mobile, 2 col tablet, 3 col desktop (sidebar keeps aside space). */
.jahizsaz-product-grid {
    display: grid; gap: var(--s-3);
    grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px)  { .jahizsaz-product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
@media (min-width: 1024px) { .jahizsaz-product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
.jahizsaz-product-grid > .kk-c-product-card { margin: 0; min-width: 0; }

/* Stacked layout: grid takes full content width (cards match homepage
   carousel size); related-articles aside sits below as a full-width card. */
.jahizsaz-search__layout {
    display: block;
}
.jahizsaz-search__main { min-width: 0; }
.jahizsaz-search__aside {
    min-width: 0;
    margin-block-start: var(--s-7);
}

.jahizsaz-empty {
    padding: var(--s-6); background: var(--sand, #FAF7F1);
    border-radius: var(--r-card, 14px);
    color: var(--ink-muted); font-size: 14px; text-align: center;
}

/* Articles widget (Image #69 style) */
.jahizsaz-articles-widget {
    background: var(--sand, #FAF7F1);
    border: 1px solid var(--line);
    border-radius: var(--r-card, 14px);
    padding: var(--s-5);
}
.jahizsaz-articles-widget__title {
    font-size: 20px; font-weight: 700; color: var(--ink);
    margin: 0 0 var(--s-4);
    padding-inline-start: 12px;
    border-inline-start: 4px solid var(--accent);
    line-height: 1.3;
}
.jahizsaz-articles-widget__list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: var(--s-4);
    grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .jahizsaz-articles-widget__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jahizsaz-articles-widget__list { grid-template-columns: repeat(3, 1fr); } }
.jahizsaz-articles-widget__item { margin: 0; padding: 0; list-style: none; }
.jahizsaz-articles-widget__item::before { content: none; }
.jahizsaz-articles-widget__link {
    display: flex; gap: var(--s-3);
    text-decoration: none; color: inherit;
    align-items: flex-start;
}
.jahizsaz-articles-widget__link:hover .jahizsaz-articles-widget__item-title { color: var(--primary); }
.jahizsaz-articles-widget__thumb {
    flex: 0 0 72px; width: 72px; height: 72px;
    border-radius: 12px; overflow: hidden;
    background: var(--accent-soft); display: block;
}
.jahizsaz-articles-widget__ph {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-soft), var(--primary-soft));
}
.jahizsaz-articles-widget__img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.jahizsaz-articles-widget__meta {
    display: flex; flex-direction: column; gap: 6px;
    min-width: 0; flex: 1 1 auto;
}
.jahizsaz-articles-widget__item-title {
    font-size: 14px; font-weight: 600; line-height: 1.55; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--d-2) var(--ease);
}
.jahizsaz-articles-widget__date {
    font-size: 12px; color: var(--ink-muted);
}
.jahizsaz-articles-widget__empty {
    font-size: 13px; color: var(--ink-muted); margin: 0;
}
.kk-c-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.elementor-location-header { position: sticky; top: 0; z-index: var(--z-header); }

/* 4.27b Header utility icons — unify cart / heart / search styling. The
   icons previously rendered as uneven inline glyphs (teal circle / plain
   emoji / plain emoji) with a rogue cart badge. Force them into the same
   .kk-c-icon-button pattern regardless of the authored markup. */
.kk-header-actions,
.kk-c-header__actions {
    display: inline-flex; align-items: center; gap: 6px;
}
.kk-header-actions > a,
.kk-header-actions > button,
.kk-c-header__actions > a,
.kk-c-header__actions > button {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    font-size: 16px; line-height: 1;
    position: relative;
    transition: background var(--d-2) var(--ease), color var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.kk-header-actions > a:hover,
.kk-header-actions > button:hover,
.kk-c-header__actions > a:hover,
.kk-c-header__actions > button:hover {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
    color: var(--primary);
}
/* Cart count badge — small, accent-colored, top-right of the cart button */
.kk-header-actions .kk-cart-count,
.kk-c-header__actions .kk-cart-count,
.kk-header-actions [data-cart-count]::after {
    position: absolute; inset-block-start: -4px; inset-inline-end: -4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--accent); color: #fff;
    border: 2px solid var(--surface);
    border-radius: 8px;
    font-size: 10px; font-weight: 700; line-height: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
/* Neutralize any legacy teal-fill cart button shape */
.kk-header-actions a[href*="cart"],
.kk-c-header__actions a[href*="cart"] {
    background: var(--surface) !important;
    color: var(--ink) !important;
    width: 40px !important; height: 40px !important;
}

/* 4.28 Footer */
.kk-c-footer {
    background: var(--ink); color: rgba(255,255,255,0.8);
    padding: 72px 48px 0;
}
.kk-c-footer h4, .kk-c-footer__heading { color: #fff; font-size: var(--fs-h4); font-weight: var(--fw-h4); margin: 0 0 16px; }
.kk-c-footer a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color var(--d-2) var(--ease); }
.kk-c-footer a:hover { color: var(--accent); }
.kk-c-footer__cols {
    display: grid; gap: 40px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .kk-c-footer__cols { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .kk-c-footer__cols { grid-template-columns: repeat(5,1fr); } }
.kk-c-footer__bottom {
    margin-top: 48px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: var(--fs-small);
}
@media (max-width: 639px) {
    .kk-c-footer { padding: 48px 20px 0; }
    .kk-c-footer__bottom { flex-direction: column; text-align: center; }
}

/* 4.29 FAQ group — chevron details with sensible text size */
.kk-c-faq, .kk-faq {
    max-width: 760px; margin: 0 auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.kk-c-faq details, .kk-faq details {
    border-bottom: 1px solid var(--line);
}
.kk-c-faq details:last-child, .kk-faq details:last-child { border-bottom: 0; }
.kk-c-faq summary,
.kk-c-faq .kk-c-faq__q,
.kk-faq summary {
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 16px 20px !important;
    cursor: pointer;
    font-family: inherit !important;
    font-size: var(--fs-body-lg) !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: var(--ink) !important;
    letter-spacing: 0 !important;
    transition: background var(--d-2) var(--ease);
}
.kk-c-faq summary::-webkit-details-marker { display: none; }
.kk-c-faq summary::marker { display: none; content: ''; }
.kk-c-faq summary:hover { background: var(--sand); }
.kk-c-faq details[open] summary { background: var(--sand); color: var(--primary); }
.kk-c-faq .kk-c-faq__chevron,
.kk-c-faq summary::after {
    content: ''; width: 12px; height: 12px; flex-shrink: 0;
    border-inline-end: 2px solid var(--ink-muted);
    border-block-end: 2px solid var(--ink-muted);
    transform: rotate(45deg);
    transition: transform var(--d-2) var(--ease);
}
.kk-c-faq details[open] summary::after {
    transform: rotate(-135deg);
    border-color: var(--primary);
}
.kk-c-faq details > *:not(summary) {
    padding: 0 20px 16px 20px !important;
    font-size: var(--fs-body) !important;
    line-height: 1.8 !important;
    color: var(--ink-muted) !important;
}
/* Neutralize theme/Elementor-injected h2/h3 sizing inside FAQ */
.kk-c-faq h2, .kk-c-faq h3, .kk-c-faq h4,
.kk-c-faq .elementor-heading-title,
.kk-c-faq .elementor-toggle-title {
    font-size: var(--fs-body-lg) !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
}
.kk-c-faq .elementor-tab-title,
.kk-c-faq .elementor-accordion-title {
    font-size: var(--fs-body-lg) !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    padding: 16px 20px !important;
}
.kk-c-faq .elementor-tab-content,
.kk-c-faq .elementor-accordion-content {
    font-size: var(--fs-body) !important;
    line-height: 1.8 !important;
    padding: 0 20px 16px !important;
}

/* 4.30 Hero */
.kk-c-hero {
    padding: 64px 20px;
    position: relative;
}
.kk-c-hero--editorial .kk-c-hero__inner {
    display: grid; gap: 32px;
    grid-template-columns: 1fr;
    align-items: center;
    max-width: 1240px; margin: 0 auto;
}
@media (min-width: 1024px) {
    .kk-c-hero { padding: 120px 48px; min-height: 640px; }
    .kk-c-hero--editorial .kk-c-hero__inner {
        grid-template-columns: 55% 45%;
        gap: 48px;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .kk-c-hero { padding: 96px 28px; min-height: 520px; }
}
.kk-c-hero__media {
    position: relative; aspect-ratio: 4/5;
    max-width: 520px; margin-inline-start: auto;
    border-radius: var(--r-hero);
    order: -1;
}
@media (min-width: 1024px) {
    .kk-c-hero__media { order: 0; }
}

/* Legacy hero visual aliases */
.kk-hero-visual { position: relative; width: 100%; aspect-ratio: 4/5; max-width: 520px; margin-inline-start: auto; }
.kk-hero-visual__shape-a {
    position: absolute; top: -20px; inset-inline-end: -24px;
    width: 120px; height: 120px; background: var(--accent);
    border-radius: 50%; z-index: 1; opacity: .9;
}
.kk-hero-visual__shape-b {
    position: absolute; bottom: -32px; inset-inline-start: -28px;
    width: 180px; height: 180px; background: var(--primary-soft);
    border-radius: var(--r-xl); z-index: 1;
}
.kk-hero-visual__photo {
    position: relative; z-index: 2; width: 100%; height: 100%;
    border-radius: var(--r-hero); overflow: hidden; box-shadow: var(--e2);
}
.kk-hero-visual__frame {
    position: absolute; inset: 12px -12px -12px 12px;
    border: 1.5px solid var(--accent); border-radius: var(--r-hero);
    z-index: 3; pointer-events: none;
}

/* 4.30a Hero editorial — the markup emitted by the builder uses .kk-c-hero__*
   class names. Wire each to render cleanly (the legacy .kk-hero-visual
   aliases above only respond to the old selectors). */
.kk-c-hero--editorial .kk-c-hero__media {
    position: relative;
    aspect-ratio: 4/5;
    max-width: 520px;
    width: 100%;
    margin-inline-start: auto;
    border-radius: var(--r-hero);
    order: -1;
}
@media (min-width: 1024px) {
    .kk-c-hero--editorial .kk-c-hero__media { order: 0; }
}
.kk-c-hero__shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.kk-c-hero__shape--a {
    top: -20px; inset-inline-end: -24px;
    width: 120px; height: 120px;
    background: var(--accent);
    border-radius: 50%;
    opacity: .9;
}
.kk-c-hero__shape--b {
    bottom: -32px; inset-inline-start: -28px;
    width: 180px; height: 180px;
    background: var(--primary-soft);
    border-radius: var(--r-xl);
}
.kk-c-hero__photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: var(--r-hero);
    overflow: hidden;
    box-shadow: var(--e2);
    background: var(--sand);
}
.kk-c-hero__svg {
    display: block;
    width: 100%;
    height: 100%;
}
.kk-c-hero__frame {
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 1.5px solid var(--accent);
    border-radius: var(--r-hero);
    z-index: 3;
    pointer-events: none;
}

/* 4.31 Callout */
.kk-c-callout { padding: 56px 20px; text-align: center; border-radius: 0; }
.kk-c-callout--gradient {
    background: linear-gradient(135deg, #0E4F4A 0%, #0A3A36 100%);
    color: #fff;
}
.kk-c-callout--gradient h2, .kk-c-callout--gradient .kk-c-callout__title { color: #fff; }
.kk-c-callout--gradient p { color: rgba(255,255,255,0.85); }
.kk-c-callout--tinted { background: var(--primary-soft); color: var(--ink); }
@media (min-width: 640px)  { .kk-c-callout { padding: 80px 28px; } }
@media (min-width: 1024px) { .kk-c-callout { padding: 96px 48px; } }

/* 4.32 Category tile — upgraded from emoji watermark to curated SVG illustration */
.kk-c-cat-tile, .kk-cat-tile {
    position: relative;
    /* 4:3 media area enforced on the tile itself */
    aspect-ratio: 4 / 3;
    border-radius: var(--r-card);
    overflow: hidden;
    display: block; text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    padding: 24px;
    /* Flex column: illustration at top, body at bottom */
    display: flex; flex-direction: column; justify-content: space-between;
    /* Motion: lift + shadow on hover */
    transition:
        transform   var(--d-2) var(--ease),
        box-shadow  var(--d-2) var(--ease),
        background  var(--d-2) var(--ease);
}

/* Rotating hover tint palette via nth-child on the grid */
.kk-cat-grid .kk-c-cat-tile:nth-child(1):hover { background: var(--primary-soft); }
.kk-cat-grid .kk-c-cat-tile:nth-child(2):hover { background: var(--mustard-soft); }
.kk-cat-grid .kk-c-cat-tile:nth-child(3):hover { background: var(--terracotta-soft); }
.kk-cat-grid .kk-c-cat-tile:nth-child(4):hover { background: var(--sand-deeper); }
.kk-cat-grid .kk-c-cat-tile:nth-child(5):hover { background: var(--primary-soft); }
.kk-cat-grid .kk-c-cat-tile:nth-child(6):hover { background: var(--mustard-soft); }

@media (hover: hover) and (pointer: fine) {
    .kk-c-cat-tile:hover, .kk-cat-tile:hover {
        transform: translateY(-4px);
        box-shadow: var(--e2);
    }
    /* Arrow slides in on hover */
    .kk-c-cat-tile:hover .kk-c-cat-tile__arrow,
    .kk-cat-tile:hover .kk-c-cat-tile__arrow {
        transform: translateX(0);
        color: var(--primary);
    }
}
.kk-c-cat-tile:focus-visible, .kk-cat-tile:focus-visible {
    outline: 3px solid var(--primary-focus);
    outline-offset: 2px;
}

/* Curated SVG illustration area */
.kk-c-cat-tile__icon, .kk-cat-tile__icon {
    /* Remove the old emoji watermark behaviour */
    display: flex; align-items: center; justify-content: flex-start;
    flex: 0 0 auto;
    /* SVGs are sized by their own width/height attributes */
}
.kk-c-cat-tile__icon svg, .kk-cat-tile__icon svg {
    /* Line-art illustrations inherit primary color stroke */
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.5;
    transition: stroke var(--d-2) var(--ease);
    width: 56px; height: 56px;
}

/* Tint overlay — kept in markup for compat but transparent in new design */
.kk-c-cat-tile__overlay, .kk-cat-tile__overlay { display: none; }

/* Body: label + chip count + arrow in one row */
.kk-c-cat-tile__body, .kk-cat-tile__body {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
}
.kk-c-cat-tile__info { display: flex; flex-direction: column; gap: 8px; }
.kk-c-cat-tile__label, .kk-cat-tile__label {
    font-size: 18px; font-weight: 700; color: var(--ink);
    margin: 0; line-height: 1.2;
}
/* Item count as chip pill */
.kk-c-cat-tile__count, .kk-cat-tile__count {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    background: var(--primary-soft); color: var(--primary);
    border-radius: var(--r-pill);
    font-size: 12px; font-weight: 600; line-height: 1;
    width: fit-content;
}
/* Inline-start chevron arrow (RTL: points right = ‹ direction = forward) */
.kk-c-cat-tile__arrow {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink-muted);
    /* At rest: shifted 4px inward; slides to 0 on hover */
    transform: translateX(-4px);
    transition: transform var(--d-2) var(--ease), color var(--d-2) var(--ease);
}
.kk-c-cat-tile__arrow svg {
    width: 20px; height: 20px;
    stroke: currentColor; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* Grid layout */
.kk-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px)  { .kk-cat-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .kk-cat-grid { grid-template-columns: repeat(3,1fr); gap: 24px; } }

/* 4.33 Price tag */
.kk-c-price {
    display: inline-flex; align-items: baseline; gap: 4px;
    font-size: var(--fs-price); line-height: var(--lh-price); font-weight: var(--fw-price);
    color: var(--ink);
}
.kk-c-price__value { font-weight: 700; }
.kk-c-price__suffix { font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); }
.kk-c-price__lead   { font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); margin-inline-end: 4px; }
.kk-c-price--accent .kk-c-price__value { color: var(--accent); }
.kk-c-price--old    { text-decoration: line-through; color: var(--ink-muted); }
.kk-c-price--stack  { flex-direction: column; align-items: flex-start; gap: 2px; }

/* 4.34 Quote / testimonial */
.kk-c-quote, .kk-quote {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 28px;
    height: 100%;
}
.kk-quote__mark { color: var(--accent); font-size: 56px; line-height: .6; font-weight: 700; }
.kk-quote__body { font-size: 17px; line-height: 1.8; color: var(--ink); margin: 12px 0 20px; }
.kk-quote__divider { height: 1px; background: var(--line); margin: 0 0 16px; }
.kk-quote__who { display: flex; align-items: center; gap: 12px; }
.kk-quote__avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--sand); color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 22px;
}
.kk-quote__name { font-size: 15px; font-weight: 600; }
.kk-quote__role { font-size: 13px; color: var(--ink-muted); }

/* 4.35 Blog card */
.kk-c-blog-card, .kk-blog-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border-radius: var(--r-card); overflow: hidden;
    border: 1px solid var(--line);
    transition: box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease);
    height: 100%; text-decoration: none;
}
.kk-c-blog-card:hover, .kk-blog-card:hover { box-shadow: var(--e2); transform: translateY(-3px); }
.kk-c-blog-card__media, .kk-blog-card__media {
    aspect-ratio: 16/10;
    background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 64px; opacity: .8;
}
.kk-c-blog-card__body, .kk-blog-card__body { padding: 20px 20px 24px; }
.kk-blog-card__chip {
    display: inline-block;
    background: var(--primary-soft); color: var(--primary);
    padding: 4px 12px; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.kk-blog-card__title {
    font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3);
    color: var(--ink); margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kk-blog-card__meta { font-size: 13px; color: var(--ink-muted); }

/* 4.35a Blog grid + quote grid wrappers */
.kk-c-blog-grid, .kk-blog-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1023px) {
    .kk-c-blog-grid, .kk-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
    .kk-c-blog-grid, .kk-blog-grid { grid-template-columns: 1fr; }
}
.kk-c-blog-card__media, .kk-blog-card__media {
    aspect-ratio: 16/10;
    max-height: 200px;
}

.kk-c-quote-grid, .kk-quote-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1023px) {
    .kk-c-quote-grid, .kk-quote-grid { grid-template-columns: 1fr; gap: 16px; }
}
.kk-c-quote, .kk-quote { padding: 28px 24px; max-width: 100%; }
.kk-c-quote__body, .kk-quote__body { font-size: 15px; line-height: 1.8; margin: 16px 0; }
.kk-c-quote__mark, .kk-quote__mark { font-size: 32px; color: var(--accent); line-height: 1; }
.kk-c-quote__footer {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kk-c-quote__footer .kk-c-quote__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.kk-c-quote__footer .kk-c-quote__role { font-size: 12px; color: var(--ink-muted); }

/* 4.36 KPI strip */
.kk-c-kpis {
    display: flex; gap: 16px; align-items: stretch;
    flex-wrap: wrap;
}
.kk-c-kpis__cell {
    flex: 1; min-width: 120px;
    display: flex; flex-direction: column; gap: 8px;
    padding: 8px 16px;
    border-inline-start: 1px solid var(--line);
}
.kk-c-kpis__cell:first-child { border-inline-start: 0; padding-inline-start: 0; }
.kk-c-kpis__num   {
    font-size: var(--fs-h3); font-weight: var(--fw-h3); color: var(--ink);
    line-height: 1.1; display: block; margin-block-end: 2px;
}
.kk-c-kpis__label {
    font-size: var(--fs-small); color: var(--ink-muted);
    line-height: 1.4; display: block;
}
@media (max-width: 639px) {
    .kk-c-kpis { flex-direction: column; text-align: center; }
    .kk-c-kpis__cell { border-inline-start: 0; border-block-start: 1px solid var(--line); padding-block-start: 12px; }
    .kk-c-kpis__cell:first-child { border-block-start: 0; }
}

/* 4.37 Steps */
.kk-c-steps, .kk-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; position: relative;
}
.kk-steps::before {
    content: ""; position: absolute; top: 18px; inset-inline: 12%;
    height: 2px; background: var(--line); z-index: 0;
}
.kk-step { position: relative; text-align: center; z-index: 1; }
.kk-step__num {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
    margin-bottom: 12px;
}
.kk-step__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.kk-step__body { font-size: 14px; color: var(--ink-muted); line-height: 1.7; }
@media (max-width: 1023px) {
    .kk-c-steps, .kk-steps { grid-template-columns: 1fr; }
    .kk-steps::before { display: none; }
    .kk-step { text-align: start; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
    .kk-step__num { margin: 0; }
}

/* =====================================================================
 * 5. SEARCH WRAPPER (branding scrub)
 * ===================================================================== */
.kk-search-wrap {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 24px;
    background: var(--surface);
}
.kk-search-wrap .basalam-link-search-title,
.kk-search-wrap [class*="basalam"] h2,
.kk-search-wrap [class*="basalam"] h3,
.kk-search-wrap [class*="basalam"] .branding,
.kk-search-wrap [class*="basalam"] .logo,
.kk-search-wrap [class*="basalam"] [class*="brand"],
.kk-search-wrap [class*="basalam"] [class*="powered"] {
    display: none !important;
}
.kk-search-wrap input[type="text"],
.kk-search-wrap input[type="search"] {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--r-input);
    border: 1px solid var(--line);
    background: var(--sand);
    font-size: 15px;
}
.kk-search-wrap button,
.kk-search-wrap input[type="submit"] {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--r-btn) !important;
    padding: 12px 22px !important;
    border: 0 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* =====================================================================
 * 6. WOOCOMMERCE PRODUCT CARD BRIDGE
 * ===================================================================== */
.woocommerce ul.products li.product,
.kk-product {
    background: var(--surface);
    border-radius: var(--r-card);
    border: 1px solid var(--line);
    overflow: hidden;
    padding: 12px 12px 16px !important;
    transition: box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.woocommerce ul.products li.product:hover { box-shadow: var(--e2); transform: translateY(-3px); }
.woocommerce ul.products li.product img { border-radius: var(--r-md); }
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: 18px; font-weight: 700; }
.woocommerce ul.products li.product .button {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--r-btn) !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    width: 100%;
    text-align: center;
}

/* Hide-flag utility for branding scrub */
[data-kk-hide="1"] { display: none !important; }

/* =====================================================================
 * 7. RESPONSIVE BREAKPOINTS — standardized at 640 / 1024 / 1240
 * ===================================================================== */

/* Tablet tweaks (max 1023) */
@media (max-width: 1023px) {
    .kk-nav { gap: 18px !important; }
    .kk-nav a { font-size: 14px !important; }
    :root {
        --fs-display: 36px; --lh-display: 1.28;
        --fs-h2: 28px;
        --fs-h3: 22px;
        --fs-h4: 18px;
        --fs-h5: 16px;
        --fs-body-l: 16px; --lh-body-l: 1.76;
        --fs-body: 15px;
        --fs-small: 13px;
        --fs-price: 20px;
        --fs-button: 15px;
        --fs-button-lg: 16px;
    }
}

/* Mobile (max 639 per spec, bumped to 767 for legacy digiland markup) */
@media (max-width: 767px) {
    /* Mobile type scale per spec */
    :root {
        --fs-display: 30px;
        --fs-h2: 24px;
        --fs-h3: 20px;
        --fs-h4: 17px;
        --fs-h5: 15px;
        --fs-body-l: 15px;
        --fs-body: 14px;
        --fs-small: 12px;
        --fs-eyebrow: 11px;
        --fs-price: 18px;
        --fs-button: 14px;
        --fs-button-lg: 15px;
    }

    /* Overflow guard. `clip` (not `hidden`) on <body> only: it never creates
       a scroll container, so position:sticky (header) keeps working. */
    body {
        overflow-x: hidden; /* legacy fallback */
        overflow-x: clip;
    }
    body, .elementor, .elementor-section, .elementor-container,
    .elementor-row, .elementor-column, .elementor-widget-wrap,
    .elementor-widget, .elementor-widget-container {
        max-width: 100% !important;
    }
    img, svg, video, iframe { max-width: 100% !important; height: auto; }

    /* Section inline padding on mobile (block padding from 8pt-rhythm rules) */
    .elementor-section.elementor-top-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .kk-section--hero { padding-top: 40px !important; padding-bottom: 40px !important; }
    .kk-header-topbar { padding: 8px 12px !important; }
    .kk-header-main-wrap { padding: 0 12px !important; }
    .kk-footer-wrap { padding: 0 !important; }

    /* Stack Elementor columns */
    .elementor-section .elementor-column {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .elementor-section.elementor-section-boxed > .elementor-container { flex-wrap: wrap !important; }
    .elementor-top-section > [style*="position:absolute" i],
    .elementor-top-section > [style*="position: absolute" i] { position: static !important; }

    /* Header */
    .kk-header-main {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 0 !important;
        justify-content: space-between !important;
    }
    .kk-logo span { font-size: 16px !important; }
    .kk-nav {
        display: none !important;
        order: 99;
        width: 100%;
        flex-direction: column !important;
        gap: 0 !important;
        background: #fff;
        border-top: 1px solid var(--line);
        margin-top: 8px;
        padding: 8px 0;
    }
    .kk-nav.kk-nav--open { display: flex !important; }
    .kk-nav a { padding: 12px 8px !important; border-bottom: 1px solid var(--line); font-size: 15px !important; }
    .kk-nav a:last-child { border-bottom: 0; }
    .kk-header-actions { gap: 4px !important; }
    .kk-header-actions a { width: 36px !important; height: 36px !important; font-size: 16px !important; }
    .kk-burger {
        display: inline-flex !important;
        width: 40px; height: 40px;
        align-items: center; justify-content: center;
        background: var(--primary-soft); color: var(--primary);
        border: 0; border-radius: 50%;
        font-size: 20px; cursor: pointer;
        margin-inline-start: 4px;
    }

    /* Hero */
    .kk-section--hero .elementor-container { flex-direction: column-reverse !important; }
    .kk-hero-text h1 { font-size: 30px !important; line-height: 1.35 !important; }
    .kk-hero-text p { font-size: 15px !important; line-height: 1.8 !important; }
    .kk-hero-ctas { flex-direction: column !important; gap: 10px !important; }
    .kk-hero-ctas > a {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 16px !important;
        box-sizing: border-box;
    }
    .kk-hero-kpis {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 14px 0 !important;
    }
    .kk-hero-kpis strong { font-size: 15px !important; }
    .kk-hero-kpis span { font-size: 11px !important; }
    .kk-hero-visual {
        max-width: 280px !important;
        aspect-ratio: 4/5 !important;
        height: auto !important;
        margin: 0 auto 24px !important;
    }
    .kk-hero-visual__photo svg { width: 100% !important; height: 100% !important; display: block; }
    .kk-hero-visual__shape-a { width: 80px !important; height: 80px !important; inset-inline-end: -10px !important; top: -10px !important; }
    .kk-hero-visual__shape-b { width: 110px !important; height: 110px !important; inset-inline-start: -10px !important; bottom: -18px !important; }
    .kk-hero-visual__frame { inset: 8px -8px -8px 8px !important; }

    /* Generic headings */
    .elementor-heading-title, h1.elementor-heading-title { font-size: 26px !important; line-height: 1.4 !important; }
    h2, .elementor-widget-heading h2, .kk-section h2 { font-size: 24px !important; line-height: 1.4 !important; }
    h3, .elementor-widget-heading h3 { font-size: 19px !important; }
    .kk-section h2[style*="font-size:32px"],
    .kk-section h2[style*="font-size: 32px"] { font-size: 24px !important; }
    .kk-section h2[style*="font-size:36px"],
    .kk-section h2[style*="font-size: 36px"] { font-size: 26px !important; }

    /* Category tiles: mobile 1-col per spec (no !important override) */
    .kk-cat-tile__label { font-size: 16px !important; }
    .kk-cat-tile__bg { font-size: 64px !important; }

    /* Calculator */
    .kk-calc-card { padding: 32px 20px !important; border-radius: 20px !important; }
    .kk-steps { grid-template-columns: 1fr !important; }

    /* Products: spec mobile = 1-col (no !important 2-col override) */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
        margin: 0;
    }
    .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        clear: none !important;
    }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; }
    .woocommerce ul.products li.product .price { font-size: 16px !important; }
    .woocommerce .price ins, .woocommerce .price del { display: inline-block !important; }

    /* Blog */
    .kk-blog-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

    /* Testimonials */
    .kk-quote-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .kk-quote { padding: 20px !important; }
    .kk-quote__body { font-size: 15px !important; }

    /* Trust strip */
    .kk-section--trust .elementor-widget-container > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .kk-section--trust .elementor-widget-container > div > div { padding: 12px !important; }
    .kk-section--trust strong { font-size: 13px !important; }
    .kk-section--trust span { font-size: 11px !important; }

    /* CTA */
    .kk-section--cta h2 { font-size: 24px !important; }
    .kk-section--cta p { font-size: 15px !important; }

    /* Footer */
    .kk-footer { padding: 40px 0 0 !important; }
    .kk-footer > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 0 16px !important;
    }
    .kk-footer > div:last-child {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 16px !important;
        text-align: center;
    }

    /* FAQ */
    .kk-faq summary { font-size: 15px !important; }
    .kk-faq p { font-size: 14px !important; }

    /* Search */
    .kk-search-wrap { padding: 16px !important; }
    .kk-search-wrap input[type="text"],
    .kk-search-wrap input[type="search"] { font-size: 14px !important; padding: 12px 14px !important; }

    /* Legacy buttons */
    .kk-btn-primary, .kk-btn-ghost, .kk-btn-accent {
        padding: 13px 20px !important;
        font-size: 14px !important;
    }
}

/* Tablet section inline padding (block padding governed by 8pt-rhythm rules above) */
@media (min-width: 640px) and (max-width: 1023px) {
    .elementor-section.elementor-top-section {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }
}

/* Desktop section inline padding (block padding governed by 8pt-rhythm rules above) */
@media (min-width: 1024px) {
    .elementor-section.elementor-top-section {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

/* ===== Section rhythm — 8pt grid, ~30% tighter than Elementor defaults ===== */
.elementor-section.elementor-top-section { padding-block: 40px !important; }
@media (max-width: 767px) { .elementor-section.elementor-top-section { padding-block: 28px !important; } }
/* Hero section keeps slightly more breathing room */
.elementor-section.elementor-top-section:has(.kk-c-hero) { padding-block: 48px !important; }

/* ===== Tight vertical rhythm for back-to-back carousels ===== */
.kk-c-section + .kk-c-section:has(.kk-c-carousel),
.kk-c-section:has(.kk-c-carousel) + .kk-c-section:has(.kk-c-carousel) {
    padding-top: 16px;
}
.kk-c-section:has(.kk-c-carousel):not(:last-child) {
    padding-bottom: 24px;
}
/* The last carousel gets normal bottom padding to breathe before next major section */
.kk-c-section:has(.kk-c-carousel) + .kk-c-section:not(:has(.kk-c-carousel)) {
    padding-top: 64px;
}

/* Desktop: shorter product card media so back-to-back carousels aren't enormous */
@media (min-width: 1024px) {
    .kk-c-carousel .kk-c-product-card__media {
        aspect-ratio: 4/3;
    }
}

/* Kill Elementor default min-height on sections wrapping carousels */
.elementor-section.elementor-top-section:has(.kk-c-carousel) {
    min-height: 0 !important;
}

/* Tighten vertical rhythm between Elementor-wrapped carousel sections so
   back-to-back carousels sit closer (was ~120px, now ~24px). */
.elementor-section.elementor-top-section:has(.kk-c-carousel) {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    margin-block: 0 !important;
}
.elementor-section.elementor-top-section:has(.kk-c-carousel) + .elementor-section.elementor-top-section:has(.kk-c-carousel) {
    padding-top: 8px !important;
}
.elementor-section.elementor-top-section:has(.kk-c-carousel) .elementor-container {
    padding-block: 0 !important;
}

/* Graceful image fallback for product cards (hotlink / 403) */
.kk-c-product-card__media {
    background-color: var(--primary-soft, #f3f4f6);
}

/* ==========  BUG FIX PASS — hero min-height, topbar dedupe, cat tile emoji, tool card unwrap  ========== */

/* Cap hero min-height — kill 100vh-ish voids */
.kk-c-section--hero,
.elementor-section.kk-c-section--hero,
.kk-c-hero {
    min-height: 0 !important;
}
@media (min-width: 1024px) {
    .kk-c-hero { padding: 64px 48px !important; min-height: 0 !important; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .kk-c-hero { padding: 56px 28px !important; min-height: 0 !important; }
}
@media (max-width: 639px) {
    .kk-c-hero { padding: 40px 16px !important; min-height: 0 !important; }
}

/* Defensive: hide any duplicate homepage topbar section the header template already ships */
body .kk-c-section--topbar,
.elementor-location-header ~ * .kk-c-section--topbar,
.elementor-section.elementor-top-section.kk-c-section--topbar {
    display: none !important;
    min-height: 0 !important;
    padding: 0 !important;
}

/* Category tile with emoji icon (top-right in RTL) — visible, not a ghost */
.kk-c-cat-tile {
    position: relative; aspect-ratio: 4/3;
    border-radius: var(--r-card); overflow: hidden;
    display: block; text-decoration: none;
    background: var(--primary-soft);
    padding: 20px;
    box-sizing: border-box;
    transition: transform var(--d-3) var(--ease), box-shadow var(--d-2) var(--ease);
}
.kk-c-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--e2); }
/* Emoji is a decorative background glyph — large, centered, low-opacity.
   Sits behind the title/count text; never competes for attention. */
.kk-c-cat-tile__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 130px;
    line-height: 1;
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}
@media (min-width: 1024px) {
    .kk-c-cat-tile { padding: 24px; }
    .kk-c-cat-tile__icon { font-size: 180px; }
}
/* No teal overlay — tile shows its soft color with the emoji fading behind */
.kk-c-cat-tile__overlay { display: none; }
.kk-c-cat-tile__body {
    position: relative;
    z-index: 2;
    color: var(--ink);
    /* Text anchored top so it doesn't collide with the centered emoji */
}
.kk-c-cat-tile__label {
    font-size: 18px; font-weight: 700; margin: 0 0 4px;
    color: var(--ink);
}
.kk-c-cat-tile__count {
    font-size: 13px;
    color: var(--ink-muted);
}
@media (min-width: 1024px) {
    .kk-c-cat-tile__label { font-size: 20px; }
}
/* Tinted variants so each tile feels distinct even before the emoji loads */
.kk-c-cat-tile--ashpazkhaneh { background: #F4E4D4; }
.kk-c-cat-tile--pazirayi     { background: #E7D9BE; }
.kk-c-cat-tile--khab         { background: #D9E4DF; }
.kk-c-cat-tile--servis       { background: #EEDFCB; }
.kk-c-cat-tile--noor         { background: #F2E6B8; }
.kk-c-cat-tile--hadiyeh      { background: #E8D5D0; }

/* Unwrap residual elevated tool card (defensive — builder no longer emits it) */
.kk-c-section--tool .kk-c-card--elevated.kk-c-tool-card {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

/* =====================================================================
 * 8. HERO REDESIGN — two-column grid
 * ===================================================================== */

/* Outer wrapper */
.kk-c-hero--editorial {
    padding: 56px 20px;
    position: relative;
    background: var(--sand);
}
@media (min-width: 640px) { .kk-c-hero--editorial { padding: 64px 28px; } }
@media (min-width: 1024px) { .kk-c-hero--editorial { padding: 72px 48px; } }

.kk-c-hero--editorial .kk-c-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .kk-c-hero--editorial .kk-c-hero__inner {
        grid-template-columns: 6fr 6fr;
        gap: 56px;
    }
}

/* Text column */
.kk-c-hero__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 2;
}
@media (min-width: 1024px) { .kk-c-hero__body { order: 1; } }

/* Eyebrow — high-contrast terracotta, passes AA on --cream */
.kk-c-hero__eyebrow {
    display: inline-block;
    color: #8A4A1E;
    font-size: var(--fs-small);
    font-weight: var(--fw-h5);
    letter-spacing: 0.12em;
    line-height: 1.5;
}

/* H1 */
.kk-c-hero__title {
    font-size: var(--fs-h1);
    font-weight: var(--fw-h1);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0;
    max-width: 16ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.02em;
}
@media (max-width: 767px) {
    .kk-c-hero__title { font-size: clamp(32px, 8vw, var(--fs-h1)); -webkit-line-clamp: unset; overflow: visible; }
}

/* Lead paragraph */
.kk-c-hero__sub {
    font-size: var(--fs-body-lg);
    color: var(--ink-muted);
    line-height: var(--lh-body);
    max-width: 52ch;
    margin: 0;
}

/* CTA row */
.kk-c-hero__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
@media (max-width: 639px) {
    .kk-c-hero__actions { flex-direction: column; align-items: stretch; }
    .kk-c-hero__actions .kk-c-button { width: 100%; justify-content: center; }
}
/* Both CTAs share the same height */
.kk-c-hero__actions .kk-c-button--primary,
.kk-c-hero__actions .kk-c-button--outline {
    height: 52px;
}

/* Outline CTA — new variant */
.kk-c-button--outline {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: 0 28px;
    background: transparent;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    border-radius: var(--r-btn);
    font-weight: var(--fw-button); font-size: var(--fs-button); line-height: 1;
    text-decoration: none; cursor: pointer;
    transition: background var(--d-2) var(--ease), color var(--d-2) var(--ease);
}
.kk-c-button--outline:hover { background: var(--primary-soft); }

/* Visual column */
.kk-c-hero__visual {
    position: relative;
    max-width: 560px;
    width: 100%;
    aspect-ratio: 5 / 4;
    margin-inline: auto;
    border-radius: var(--r-hero);
    order: 1;
}
@media (min-width: 1024px) {
    .kk-c-hero__visual { order: 2; margin-inline-start: auto; margin-inline-end: 0; }
}
/* Mustard blob background wash */
.kk-c-hero__visual::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
    background: radial-gradient(ellipse at center, rgba(200, 137, 43, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.kk-c-hero__visual .kk-c-hero__photo,
.kk-c-hero__visual .kk-c-hero__svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: var(--r-hero);
    overflow: hidden;
    display: block;
}

/* =====================================================================
 * 9. STAT CARDS (replace .kk-c-kpis)
 * ===================================================================== */
.kk-c-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}
@media (max-width: 639px) {
    .kk-c-stat-grid { grid-template-columns: 1fr; gap: 8px; }
}
.kk-c-stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px;
    display: flex;
    flex-direction: row; /* RTL: icon ends up on the right because the DOM puts icon first */
    gap: 12px;
    align-items: center;
    box-shadow: var(--e1);
}
/* Inner text column — keep alignment consistent with the icon */
.kk-c-stat-card > div {
    text-align: start;
    min-width: 0;
}
.kk-c-stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}
.kk-c-stat-card__icon svg { width: 24px; height: 24px; }
.kk-c-stat-card__num {
    display: block;
    font-size: var(--fs-h4);
    font-weight: var(--fw-h4);
    line-height: var(--lh-heading);
    color: var(--ink);
}
.kk-c-stat-card__label {
    display: block;
    font-size: var(--fs-small);
    color: var(--ink-muted);
    line-height: 1.5;
    margin-top: 2px;
}

/* =====================================================================
 * 10. TRUST STRIP
 * ===================================================================== */
.kk-c-trust-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-top: 16px;
    direction: rtl;
}
@media (max-width: 639px) {
    .kk-c-trust-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.kk-c-trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-small);
    color: var(--ink-muted);
    line-height: 1.5;
    white-space: nowrap;
}
.kk-c-trust-strip__item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ==========================================================================
   Mobile bottom navigation bar — shown only below 1024px.
   Replaces the hidden top-bar nav on phones/small tablets.
   ========================================================================== */
.kj-bottom-nav {
    display: none;
}
@media (max-width: 1023px) {
    .kj-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        inset-inline: 0;
        inset-block-end: 0;
        z-index: var(--z-sticky-footer, 900);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    }
    .kj-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 4px;
        color: var(--ink-muted);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
        border-radius: var(--r-md, 10px);
        transition: color var(--d-2) var(--ease), background var(--d-2) var(--ease);
        background: transparent;
        border: 0;
        cursor: pointer;
        font-family: inherit;
    }
    .kj-bottom-nav__item:hover,
    .kj-bottom-nav__item:focus-visible {
        color: var(--primary);
    }
    .kj-bottom-nav__item.is-active {
        color: var(--primary);
        background: var(--primary-soft);
    }
    .kj-bottom-nav__icon {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        flex-shrink: 0;
    }
    .kj-bottom-nav__label {
        font-size: 10.5px;
        white-space: nowrap;
    }
    /* Center "primary" item (calculator) raises above the row like a FAB */
    .kj-bottom-nav__item--primary {
        color: #fff !important;
    }
    .kj-bottom-nav__item--primary .kj-bottom-nav__icon-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        margin-top: -18px;
        box-shadow: 0 4px 12px rgba(14, 79, 74, 0.35);
    }
    .kj-bottom-nav__item--primary .kj-bottom-nav__label {
        color: var(--primary);
        font-weight: 600;
    }
    .kj-bottom-nav__item--primary.is-active {
        background: transparent;
    }
    /* Reserve space at page bottom so content doesn't hide behind nav */
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   Wizard — mobile responsive overrides (no full-bleed, button stays in card)
   ========================================================================== */
@media (max-width: 639px) {
    .kj-wizard-root {
        width: auto !important;
        margin-inline: 0 !important;
        background: transparent !important;
        min-height: 0 !important;
        padding-inline: var(--s-4) !important;
    }
    .kj-wizard-root__inner {
        min-height: 0 !important;
        border-radius: var(--r-card, 14px) !important;
        box-shadow: var(--e1) !important;
        border: 1px solid var(--line) !important;
        margin-block: var(--s-4) !important;
        background: #fff !important;
    }
    /* Keep the action footer inside the card — not stuck to viewport */
    .kj-wizard-root .kk-c-sticky-footer,
    .kj-wizard-root .kj-wz__footer {
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: 1px solid var(--line);
        padding: var(--s-4) var(--s-5) !important;
        flex-direction: column-reverse;
        gap: var(--s-3);
        z-index: auto !important;
    }
}

/* ==========================================================================
   Generic page (page.php) — 720px reading column, 1120px for app pages
   ========================================================================== */
.jahizsaz-page {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    padding: var(--s-6) var(--s-4) var(--s-8);
    box-sizing: border-box;
}
.jahizsaz-page--wide { max-width: 1120px; }
@media (min-width: 640px) {
    .jahizsaz-page { padding-inline: var(--s-5); }
}
@media (min-width: 1024px) {
    .jahizsaz-page { padding-block: var(--s-7) var(--s-9); }
}
.jahizsaz-page__header { margin-block-end: var(--s-5); }
.jahizsaz-page__title {
    margin: 0;
    font-size: clamp(26px, 5vw, 40px);
    font-weight: var(--fw-h3);
    line-height: 1.3;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.jahizsaz-page__cover { margin: 0 0 var(--s-5); }
.jahizsaz-page__img { display: block; width: 100%; height: auto; border-radius: var(--r-card); }
.jahizsaz-page__body { font-size: var(--fs-body-lg); line-height: var(--lh-body); min-width: 0; }
.jahizsaz-page__body > :first-child { margin-block-start: 0; }
.jahizsaz-page__body p { margin-block: 0 var(--s-4); }
.jahizsaz-page__body h2,
.jahizsaz-page__body h3 { margin-block: var(--s-6) var(--s-3); font-weight: var(--fw-h4); }
.jahizsaz-page__body ul,
.jahizsaz-page__body ol { margin-block: 0 var(--s-4); padding-inline-start: var(--s-5); }
.jahizsaz-page__body img { max-width: 100%; height: auto; }
.jahizsaz-page__body a { text-decoration: underline; text-underline-offset: 3px; }
.jahizsaz-page__body table { max-width: 100%; display: block; overflow-x: auto; }
.jahizsaz-page__pages { margin-block-start: var(--s-5); display: flex; gap: var(--s-2); flex-wrap: wrap; }
/* App pages (calculator): the wizard owns its own spacing. */
.jahizsaz-page--wide .jahizsaz-page__header { margin-block-end: var(--s-4); text-align: center; }
.jahizsaz-page--wide .jahizsaz-page__body { font-size: inherit; }

/* ==========================================================================
   Footer (template-parts/footer/site-footer.php)
   ========================================================================== */
.jahizsaz-footer {
    background: var(--ink);
    color: var(--line);
    padding: var(--s-7) 0 var(--s-5);
    margin-block-start: var(--s-8);
}
.jahizsaz-footer__inner {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--s-5);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-6);
}
.jahizsaz-footer__heading {
    margin: 0 0 var(--s-3);
    color: #fff;
    font-size: 15px;
    font-weight: var(--fw-h4);
    line-height: 1.4;
}
.jahizsaz-footer__heading--brand { font-size: 18px; font-weight: var(--fw-h3); }
.jahizsaz-footer__text {
    margin: 0 0 var(--s-4);
    color: var(--ink-disabled);
    font-size: 14px;
    line-height: 1.8;
}
.jahizsaz-footer__disclosure {
    margin: 0 0 var(--s-4);
    color: var(--ink-disabled);
    font-size: 13px;
    line-height: 1.8;
}
.jahizsaz-footer__copy {
    margin: 0;
    color: var(--ink-disabled); /* #A8A39C on #141414 ≈ 7.6:1 */
    font-size: 13px;
}
.jahizsaz-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}
.jahizsaz-footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--line);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--d-2) var(--ease);
}
.jahizsaz-footer__list a:hover { color: var(--accent); }
@media (pointer: coarse) { .jahizsaz-footer__list a { min-height: 44px; } }
.jahizsaz-footer a:focus-visible { outline-color: var(--accent); }
.jahizsaz-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 var(--s-5);
    border-radius: var(--r-sm);
    background: var(--accent);
    color: var(--ink);
    font-weight: var(--fw-h4);
    text-decoration: none;
    transition: background var(--d-2) var(--ease);
}
.jahizsaz-footer__btn:hover { background: var(--accent-soft); color: var(--ink); }

/* ==========================================================================
   Channel CTA band (blog index) — replaces the old fake newsletter form
   ========================================================================== */
.jahizsaz-channel {
    margin-block-start: var(--s-9);
    padding: var(--s-8) var(--s-5);
    border-radius: var(--r-xl);
    background: var(--primary);
    color: #fff;
    text-align: center;
}
.jahizsaz-channel__inner {
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
}
.jahizsaz-channel__heading {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: var(--fw-h4);
    line-height: 1.4;
}
.jahizsaz-channel__sub { margin: 0; color: rgba(255, 255, 255, 0.9); line-height: 1.8; }
.jahizsaz-channel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 var(--s-6);
    border-radius: var(--r-sm);
    background: var(--accent);
    color: var(--ink);
    font-size: 16px;
    font-weight: var(--fw-h4);
    text-decoration: none;
    transition: background var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.jahizsaz-channel__btn:hover { background: var(--accent-soft); color: var(--ink); transform: translateY(-1px); }
.jahizsaz-channel__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
