/* ==========================================================================
   KINDERSHOP — GLOBAL CSS (every page)   file: kindershop-sections.css
   Upload to Static Application Files and load app-wide (#APP_FILES#…?v=N).
   Contents:
     0  tokens + fonts          5  product rating / badges
     1  announcement bar        6  visit our store
     2  trust strip             7  floating WhatsApp button
     3  shop by budget          8  site header
     4  shop by occasion        9  desktop menu bar
    10  side menu (drawer)
   ========================================================================== */

/* Tokens (same as home CSS, needed on pages without it) */
:root {
    --ks-ink:    #1B2A4A;   /* navy: text, header bar, main buttons   */
    --ks-ink-2:  #2E3F63;   /* navy hover                             */
    --ks-text:   #2A2F3A;   /* body text                              */
    --ks-muted:  #6B7280;   /* secondary text                         */
    --ks-line:   #E8EAEF;   /* borders                                */
    --ks-soft:   #F5F6F8;   /* image backdrop                         */
    --ks-red:    #E8344E;   /* sale badges (from the logo red)        */
    --ks-sun:    #FFC933;   /* highlights, active tab underline       */
    --ks-sky:    #EAF3FF;   /* announcement bar, footer tint          */
    --ks-green:  #17915A;   /* "% off" text, success                  */
    --ks-star:   #F5B400;   /* rating stars                           */

    --ks-font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --ks-font-head: 'Poppins', 'Jost', system-ui, sans-serif;

    --ks-gutter:  40px;     /* left/right page padding                */
    --ks-gap:     20px;     /* gap between cards                      */
    --ks-section: 56px;     /* space between sections                 */
    --ks-radius:  12px;
}

@media (max-width: 768px) {
    :root {
        --ks-gutter:  16px;
        --ks-gap:     12px;
        --ks-section: 32px;
    }
}


:root {
    --ks-tint-sky:  #EAF3FF;
    --ks-tint-sun:  #FFF4D6;
    --ks-tint-pink: #FFE8EC;
    --ks-tint-mint: #E6F6EF;
    --ks-wa:        #25D366;   /* WhatsApp green */
}

/* ==========================================================================
   GLOBAL FONTS — every page
   Jost for all text, Poppins for headings.
   Icons (Font APEX / Font Awesome) are excluded so they keep their icon font.
   :where() keeps the exclusion at zero specificity, so the heading rule wins.
   ========================================================================== */
html,
body,
body *:not(:where(.fa, [class^="fa-"], [class*=" fa-"], .t-Icon, .a-Icon, .apex-icons-fontapex, [class*="icon"], svg, svg *)) {
    font-family: var(--ks-font-body, 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif) !important;
}

body :is(h1, h2, h3, h4, h5, h6,
         .t-Region-title,
         .t-Login-title,
         .t-HeroRegion-title,
         .t-Card-title,
         .t-Dialog-title,
         .ui-dialog-title,
         .rating-number,
         .ks-budget-tile b) {
    font-family: var(--ks-font-head, 'Poppins', 'Jost', system-ui, sans-serif) !important;
}

/* shared section wrapper */
.ks-sec {
    margin-top: var(--ks-section, 56px);
}

.ks-sec-head {
    text-align: center;
    margin-bottom: 24px;
}

.ks-sec-head h2 {
    font-family: var(--ks-font-head);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ks-ink);
    margin: 0 0 6px;
}

.ks-sec-head p {
    font-size: 15px;
    color: var(--ks-muted);
    margin: 0;
}


/* ==========================================================================
   1. ANNOUNCEMENT BAR
   ========================================================================== */
.ks-announce {
    display: flex;
    justify-content: center;
    gap: 32px;
    background: var(--ks-ink);
    color: #fff;
    font-family: var(--ks-font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 9px 16px;
    overflow: hidden;
}

.ks-announce span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ks-announce span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ks-sun);
}


/* ==========================================================================
   2. TRUST STRIP
   ========================================================================== */
.ks-trust {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 20px var(--ks-gutter) 0;
    margin: 0;
    list-style: none;
}

.ks-trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--ks-line);
    border-radius: var(--ks-radius);
    padding: 12px 14px;
    margin: 0;
}

.ks-trust-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.ks-trust-icon svg {
    width: 22px;
    height: 22px;
}

.ks-trust li:nth-child(5n+1) .ks-trust-icon { background: var(--ks-tint-pink); color: var(--ks-red); }
.ks-trust li:nth-child(5n+2) .ks-trust-icon { background: var(--ks-tint-sun);  color: #B7791F; }
.ks-trust li:nth-child(5n+3) .ks-trust-icon { background: var(--ks-tint-mint); color: var(--ks-green); }
.ks-trust li:nth-child(5n+4) .ks-trust-icon { background: var(--ks-tint-sky);  color: #2563EB; }
.ks-trust li:nth-child(5n+5) .ks-trust-icon { background: var(--ks-tint-pink); color: var(--ks-ink); }

.ks-trust strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ks-ink);
    line-height: 1.3;
}

.ks-trust small {
    display: block;
    font-size: 12px;
    color: var(--ks-muted);
    line-height: 1.3;
}


/* ==========================================================================
   3. SHOP BY BUDGET
   ========================================================================== */
.ks-budget {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ks-gap);
    padding: 0 var(--ks-gutter);
}

.ks-budget-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    padding: 20px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--ks-ink);
    transition: transform 0.25s ease;
}

.ks-budget-tile:hover {
    transform: translateY(-3px);
}

.ks-budget-tile:nth-child(1) { background: var(--ks-tint-sun); }
.ks-budget-tile:nth-child(2) { background: var(--ks-tint-pink); }
.ks-budget-tile:nth-child(3) { background: var(--ks-tint-sky); }
.ks-budget-tile:nth-child(4) { background: var(--ks-ink); color: #fff; }

.ks-budget-tile small {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.ks-budget-tile b {
    display: block;
    font-family: var(--ks-font-head);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-top: 4px;
}

.ks-budget-tile em {
    font-style: normal;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.ks-budget-tile em::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

/* decorative coins in the corner */
.ks-budget-tile svg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 96px;
    height: 96px;
    opacity: 0.9;
}


/* ==========================================================================
   4. SHOP BY OCCASION
   ========================================================================== */
.ks-occasion {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ks-gap);
    padding: 0 var(--ks-gutter);
}

.ks-occ-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--ks-ink);
    background: #fff;
    border: 1px solid var(--ks-line);
}

.ks-occ-art {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ks-occ-art svg {
    width: 62%;
    height: auto;
    transition: transform 0.4s ease;
}

.ks-occ-card:hover .ks-occ-art svg {
    transform: scale(1.06) rotate(-2deg);
}

/* optional real photo instead of illustration */
.ks-occ-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-occ-card:nth-child(1) .ks-occ-art { background: var(--ks-tint-pink); }
.ks-occ-card:nth-child(2) .ks-occ-art { background: var(--ks-tint-sun); }
.ks-occ-card:nth-child(3) .ks-occ-art { background: var(--ks-tint-sky); }
.ks-occ-card:nth-child(4) .ks-occ-art { background: var(--ks-tint-mint); }

.ks-occ-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: var(--ks-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 999px;
}

.ks-occ-body {
    padding: 14px 16px 16px;
}

.ks-occ-body h3 {
    font-family: var(--ks-font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--ks-ink);
    margin: 0 0 4px;
}

.ks-occ-body p {
    font-size: 13px;
    color: var(--ks-muted);
    margin: 0 0 10px;
    line-height: 1.45;
}

.ks-occ-body span {
    font-size: 14px;
    font-weight: 600;
    color: var(--ks-ink);
    border-bottom: 2px solid var(--ks-sun);
    padding-bottom: 1px;
}


/* ==========================================================================
   5. PRODUCT CARDS — rating + Bestseller / New badge
      Uses the APEX Cards "Badge" attribute (column BADGE_TEXT)
   ========================================================================== */
:is(#girltab, #boytab, #newborntab, #mantab, #toytab, .ks-products) .a-CardView {
    position: relative;
}

:is(#girltab, #boytab, #newborntab, #mantab, #toytab, .ks-products) .a-CardView-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--ks-sun);
    color: var(--ks-ink);
    border: 0;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

:is(#girltab, #boytab, #newborntab, #mantab, #toytab, .ks-products) .a-CardView-badgeLabel {
    display: none;   /* hide "Badge:" label text */
}

.ks-badge--best {
    background: var(--ks-sun);
    color: var(--ks-ink);
}

.ks-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ks-muted);
}

.ks-stars {
    position: relative;
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1px;
    color: #D9DCE3;
}

.ks-stars::before {
    content: "★★★★★";
}

.ks-stars::after {
    content: "★★★★★";
    position: absolute;
    left: 0;
    top: 0;
    width: calc(var(--r, 0) / 5 * 100%);
    overflow: hidden;
    white-space: nowrap;
    color: var(--ks-star);
}


/* ==========================================================================
   6. VISIT OUR STORE
   ========================================================================== */
.ks-store {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 0;
    margin: 0 var(--ks-gutter);
    background: var(--ks-tint-sky);
    border-radius: 20px;
    overflow: hidden;
}

.ks-store-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ks-store-info h2 {
    font-family: var(--ks-font-head);
    font-size: 28px;
    font-weight: 600;
    color: var(--ks-ink);
    margin: 0 0 8px;
}

.ks-store-info > p {
    font-size: 15px;
    color: var(--ks-text);
    margin: 0 0 20px;
    max-width: 44ch;
}

.ks-store-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ks-store-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--ks-text);
    margin: 0;
}

.ks-store-list svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--ks-ink);
    margin-top: 1px;
}

.ks-store-list b {
    display: block;
    color: var(--ks-ink);
    font-weight: 600;
}

.ks-store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ks-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--ks-font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1.5px solid var(--ks-ink);
    transition: background 0.2s ease, color 0.2s ease;
}

.ks-btn svg { width: 18px; height: 18px; }

.ks-btn--dark        { background: var(--ks-ink); color: #fff !important; }
.ks-btn--dark:hover  { background: var(--ks-ink-2); }
.ks-btn--line        { background: transparent; color: var(--ks-ink) !important; }
.ks-btn--line:hover  { background: #fff; }

.ks-store-map {
    min-height: 360px;
}

.ks-store-map iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}


/* ==========================================================================
   7. FLOATING WHATSAPP BUTTON
   ========================================================================== */
.ks-wa-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: var(--ks-wa);
    color: #fff !important;
    font-family: var(--ks-font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease;
}

.ks-wa-float:hover {
    transform: translateY(-2px);
}

.ks-wa-float svg {
    width: 24px;
    height: 24px;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
    .ks-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ks-occasion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .ks-sec-head h2,
    .ks-store-info h2 {
        font-size: 20px;
    }

    .ks-sec-head p {
        font-size: 14px;
    }

    .ks-sec-head {
        margin-bottom: 16px;
        padding: 0 var(--ks-gutter);
    }

    /* announcement: one message at a time, fading */
    .ks-announce {
        display: grid;
        font-size: 12px;
        padding: 8px 12px;
    }

    .ks-announce span {
        grid-area: 1 / 1;
        justify-content: center;
        opacity: 0;
        animation: ksRotate 9s infinite;
    }

    .ks-announce span:nth-child(2) { animation-delay: 3s; }
    .ks-announce span:nth-child(3) { animation-delay: 6s; }

    /* trust strip: swipe row right under the hero */
    .ks-trust {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 10px;
        padding: 14px var(--ks-gutter) 4px;
        scroll-padding-inline: var(--ks-gutter);
    }

    .ks-trust::-webkit-scrollbar { display: none; }

    .ks-trust li {
        flex: 0 0 auto;
        padding: 10px 12px;
        scroll-snap-align: start;
    }

    .ks-trust-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .ks-trust-icon svg { width: 18px; height: 18px; }
    .ks-trust strong   { font-size: 13px; white-space: nowrap; }
    .ks-trust small    { font-size: 11px; white-space: nowrap; }

    /* budget: 2 x 2 */
    .ks-budget {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ks-budget-tile {
        min-height: 128px;
        padding: 14px;
        border-radius: 14px;
    }

    .ks-budget-tile b  { font-size: 28px; }
    .ks-budget-tile svg { width: 58px; height: 58px; right: -8px; bottom: -8px; }
    .ks-budget-tile em { font-size: 13px; padding-right: 34px; }

    /* occasion: swipe, 1.6 visible */
    .ks-occasion {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 12px;
        scroll-padding-inline: var(--ks-gutter);
    }

    .ks-occasion::-webkit-scrollbar { display: none; }

    .ks-occ-card {
        flex: 0 0 60vw;
        scroll-snap-align: start;
    }

    .ks-occ-body h3 { font-size: 15px; }
    .ks-occ-body p  { font-size: 12px; }

    /* store: stacked */
    .ks-store {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .ks-store-info {
        padding: 22px 18px;
    }

    .ks-store-map,
    .ks-store-map iframe {
        min-height: 240px;
    }

    .ks-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* WhatsApp: icon only, above the bottom tab bar */
    .ks-wa-float {
        right: 14px;
        bottom: 78px;
        width: 52px;
        padding: 0;
        justify-content: center;
    }

    .ks-wa-float span {
        display: none;
    }
}

@keyframes ksRotate {
    0%, 3%    { opacity: 0; transform: translateY(6px); }
    6%, 30%   { opacity: 1; transform: none; }
    33%, 100% { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .ks-announce span { animation: none; }
    .ks-announce span:first-child { opacity: 1; }
}


/* ==========================================================================
   8. SITE HEADER (logo · search · Admin · Hello, account · Cart · Install App)
      Keeps APEX's own header layout (search stays right after the logo)
      and only changes sizes, colours and spacing — so nothing jumps around.
   ========================================================================== */
.t-Header {
    background: #fff !important;
    border-bottom: 1px solid var(--ks-line);
    box-shadow: none;
}

.t-Header-branding {
    align-items: center;
    min-height: 72px;
    height: auto !important;
    padding-left: var(--ks-gutter, 40px) !important;
    padding-right: var(--ks-gutter, 40px) !important;
    box-sizing: border-box;
}

/* logo + whatever follows it (menu button, search) in one neat row */
.t-Header-logo {
    display: flex !important;
    align-items: center;
    gap: 24px;
    padding: 0 !important;
}

.t-Header-logo-link {
    display: flex;
    align-items: center;
}

.t-Header-logo-link img,
.t-Header-logo img {
    display: block;
    width: auto;
    height: 46px;
    max-height: 46px;
    object-fit: contain;
}

/* ---- search box ---- */
.t-Header :is(.t-Region, .t-Region-body, .t-Form-fieldContainer, .t-Form-inputContainer, .t-Form-itemWrapper):has(input:not([type="hidden"])) {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
}

.t-Header :is(input[type="search"], input[type="text"]) {
    width: clamp(280px, 40vw, 620px) !important;
    height: 46px !important;
    box-sizing: border-box;
    padding: 0 18px 0 46px !important;
    border: 1.5px solid #D5DAE3 !important;
    border-radius: 999px !important;
    background: var(--ks-soft)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A4A' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")
        16px center / 18px 18px no-repeat !important;
    box-shadow: none !important;
    font-family: var(--ks-font-body) !important;
    font-size: 15px !important;
    color: var(--ks-ink) !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.t-Header :is(input[type="search"], input[type="text"])::placeholder {
    color: #8A909C;
}

.t-Header :is(input[type="search"], input[type="text"]):focus {
    border-color: var(--ks-ink) !important;
    background-color: #fff !important;
    outline: none;
}

/* old magnifier inside the field (the new one is drawn above) */
.t-Header :is(.t-Form-itemWrapper, .a-Search, .t-SearchRegion) :is(.t-Icon, .a-Icon, .fa-search, .apex-item-icon):not(button *) {
    display: none !important;
}

/* ---- right side links ---- */
.t-NavigationBar {
    display: flex !important;
    align-items: center;
    gap: 4px;
}

.t-NavigationBar-item .t-Button--navBar,
.t-NavigationBar-item > a,
.t-NavigationBar-item > button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 12px !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ks-ink) !important;
    font-size: 14px !important;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.t-NavigationBar-item .t-Button--navBar:hover,
.t-NavigationBar-item > a:hover {
    background: var(--ks-soft) !important;
}

.t-NavigationBar-item .t-Icon,
.t-NavigationBar-item .fa {
    font-size: 20px !important;
    color: var(--ks-ink) !important;
}

.t-NavigationBar-item .t-Button-label {
    color: var(--ks-ink) !important;
}

/* account: "Hello," above the number */
.t-NavigationBar-item:has([class*="user"]) .t-Button-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    font-weight: 600;
}

.t-NavigationBar-item:has([class*="user"]) .t-Button-label::before {
    content: "Hello,";
    font-size: 12px;
    font-weight: 400;
    color: var(--ks-muted);
}

/* cart: bold, yellow count */
.t-NavigationBar-item:has([class*="cart"]) .t-Button--navBar,
.t-NavigationBar-item:has([class*="cart"]) > a {
    position: relative;
    font-weight: 600;
}

.t-NavigationBar-item:has([class*="cart"]) .t-Button-badge {
    position: static;
    min-width: 22px;
    height: 22px;
    margin-left: 2px;
    padding: 0 6px;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    background: var(--ks-sun) !important;
    color: var(--ks-ink) !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* Install App: small outline pill */
.t-NavigationBar-item:has([class*="download"]) .t-Button--navBar,
.t-NavigationBar-item:has([class*="download"]) > a {
    height: 36px;
    margin-left: 6px;
    border: 1px solid var(--ks-line) !important;
    border-radius: 999px !important;
    font-size: 13px !important;
}

.t-NavigationBar-item:has([class*="download"]) .t-Icon {
    font-size: 16px !important;
}

.t-NavigationBar-item .a-Icon.icon-down-arrow,
.t-NavigationBar-item .t-Button-icon--right {
    color: var(--ks-muted) !important;
    font-size: 12px !important;
}


/* ---- tablet ---- */
@media (max-width: 64rem) {
    .t-Header-branding {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .t-Header-logo {
        gap: 16px;
    }

    .t-Header :is(input[type="search"], input[type="text"]) {
        width: clamp(200px, 32vw, 420px) !important;
    }

    .t-NavigationBar-item:has([class*="download"]) .t-Button-label,
    .t-NavigationBar-item:has([class*="gear"], [class*="cog"]) .t-Button-label {
        display: none;
    }
}


/* ---- phone: logo · ☰ · search fills the space · cart ---- */
@media (max-width: 640px) {
    .t-Header-branding {
        min-height: 60px;
        padding: 8px 12px !important;
    }

    .t-Header-logo {
        gap: 8px;
        min-width: 0;
    }

    .t-Header-logo-link img,
    .t-Header-logo img {
        height: 34px;
        max-height: 34px;
    }

    /* search takes the free width between logo/☰ and the icons */
    .t-Header :is(input[type="search"], input[type="text"]) {
        width: calc(100vw - 230px) !important;
        min-width: 130px;
        height: 42px !important;
        padding-left: 40px !important;
        background-position: 14px center !important;
        font-size: 16px !important;          /* stops iPhone zooming in */
    }

    .t-NavigationBar {
        gap: 0;
    }

    .t-NavigationBar-item .t-Button--navBar,
    .t-NavigationBar-item > a,
    .t-NavigationBar-item > button {
        height: 42px;
        padding: 0 8px !important;
    }

    /* icons only */
    .t-NavigationBar-item .t-Button-label,
    .t-NavigationBar-item .t-Button-icon--right,
    .t-NavigationBar-item .icon-down-arrow {
        display: none !important;
    }

    /* Install App and account leave the phone header
       (account + cart are in the bottom bar) */
    .t-NavigationBar-item:has([class*="download"]),
    .t-NavigationBar-item:has([class*="user"]) {
        display: none !important;
    }

    .t-NavigationBar-item:has([class*="cart"]) .t-Button-badge {
        position: absolute;
        top: 2px;
        left: 20px;
        min-width: 19px;
        height: 19px;
        padding: 0 4px;
        border: 2px solid #fff;
        font-size: 10.5px !important;
        line-height: 15px;
    }

    /* page content never hides behind the bottom bar */
    .t-Body-content {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}


/* ==========================================================================
   9. DESKTOP MENU BAR (navy: Home · Toys · Girls · Boy · New Born · Men …)
   ========================================================================== */
@media (min-width: 641px) {
    .t-Header-nav {
        background: var(--ks-ink) !important;
        border: 0 !important;
    }

    .t-Header-nav .t-NavTabs {
        display: flex;
        justify-content: flex-start;
        gap: 2px;
        margin: 0;
        padding: 0 var(--ks-gutter, 40px);
        overflow-x: auto;
        scrollbar-width: none;
        background: transparent !important;
    }

    .t-Header-nav .t-NavTabs::-webkit-scrollbar {
        display: none;
    }

    .t-Header-nav .t-NavTabs-item {
        flex: 0 0 auto !important;
        max-width: none !important;
        border: 0 !important;
        background: transparent !important;
    }

    .t-Header-nav .t-NavTabs-link {
        position: relative;
        display: flex !important;
        align-items: center;
        height: 46px;
        padding: 0 16px !important;
        border: 0 !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 14.5px;
        font-weight: 500;
        white-space: nowrap;
        text-decoration: none !important;
        transition: background-color 0.15s ease;
    }

    .t-Header-nav .t-NavTabs-link:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .t-Header-nav .t-NavTabs-label {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        color: inherit !important;
    }

    .t-Header-nav .t-NavTabs-icon {
        display: none !important;
    }

    .t-Header-nav .t-NavTabs-item.is-active .t-NavTabs-link {
        font-weight: 600;
    }

    .t-Header-nav .t-NavTabs-item.is-active .t-NavTabs-link::after {
        content: "";
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: var(--ks-sun);
    }

    .t-Header-nav .t-NavTabs-item:has(a[href*="sale" i]) .t-NavTabs-link {
        color: #FFD1D8 !important;
        font-weight: 600;
    }
}


/* ==========================================================================
   10. SIDE MENU (drawer)
   Where : add at the END of kindershop-sections.css (the app-wide static
           file) and bump the ?v= number, so it works whether the menu is
           an inline drawer or a separate drawer page.
   Uses  : --ks-* colours and fonts from kindershop-sections.css.
   Icons and section labels follow the CURRENT menu order:
     1 Toys · 2 Girls Fashion · 3 Boys Fashion · 4 New Born ·
     5 Your Account · 6 Your Order · 7 About Us · 8 Contact Us
   If you change the order, change the nth-child numbers in sections 3, 4 and 5.
   ========================================================================== */


/* ---------- 1. DRAWER TITLE BAR ("Menu" + close) ---------- */
.ui-dialog .ui-dialog-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--ks-line);
}

.ui-dialog .ui-dialog-title {
    font-family: var(--ks-font-head) !important;
    font-size: 18px;
    font-weight: 600;
    color: var(--ks-ink);
}

/* close button: soft grey circle instead of the bright blue square */
.ui-dialog .ui-dialog-titlebar-close {
    position: static;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--ks-soft) !important;
    color: var(--ks-ink) !important;
    box-shadow: none !important;
    outline: none;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    background: var(--ks-line) !important;
}

.ui-dialog .ui-dialog-titlebar-close:focus-visible {
    outline: 2px solid var(--ks-ink);
    outline-offset: 2px;
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon {
    color: var(--ks-ink) !important;
}


/* ---------- 2. MENU LIST ---------- */
.t-LinksList,
.t-LinksList-list {
    margin: 0;
    padding: 4px 16px 8px;
    list-style: none;
    border: 0;
}

.t-LinksList-item {
    margin: 0;
    border: 0 !important;
}

.t-LinksList-link {
    display: flex !important;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 8px 8px !important;
    border: 0 !important;
    border-radius: 12px;
    background: transparent;
    color: var(--ks-ink) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease;
}

.t-LinksList-link:hover,
.t-LinksList-link:focus-visible,
.t-LinksList-item.is-current > .t-LinksList-link {
    background: var(--ks-soft) !important;
}

.t-LinksList-item.is-current > .t-LinksList-link {
    font-weight: 600;
}

/* old icon slot and badge off — the new icons come from section 5 */
.t-LinksList-icon {
    display: none !important;
}

.t-LinksList-label {
    flex: 1 1 auto;
    padding: 0 !important;
    white-space: normal;
}

/* icon circle — overrides the template's own ">" arrow icon */
.t-LinksList .t-LinksList-item > .t-LinksList-link::before {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: 0 0 40px;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    transform: none !important;
    font-size: 0 !important;
    background: var(--ks-soft) center / 40px 40px no-repeat;
}

/* chevron on the right */
.t-LinksList .t-LinksList-item > .t-LinksList-link::after {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: 0 0 8px;
    width: 8px !important;
    height: 8px !important;
    margin: 0 6px 0 0 !important;
    border: 0 !important;
    border-top: 2px solid #B8BDC7 !important;
    border-right: 2px solid #B8BDC7 !important;
    transform: rotate(45deg) !important;
    font-size: 0 !important;
    background: none !important;
}


/* ---------- 3. SECTION LABELS (Shop / My account / Kindershop) ---------- */
.t-LinksList-item:is(:nth-child(1), :nth-child(5), :nth-child(7))::before {
    display: block;
    padding: 18px 8px 6px;
    font-family: var(--ks-font-head) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ks-muted);
}

.t-LinksList-item:is(:nth-child(5), :nth-child(7))::before {
    margin-top: 8px;
    border-top: 1px solid var(--ks-line);
}

.t-LinksList-item:nth-child(1)::before { content: "Shop by category"; padding-top: 10px; }
.t-LinksList-item:nth-child(5)::before { content: "My account"; }
.t-LinksList-item:nth-child(7)::before { content: "Kindershop"; }


/* ---------- 4. SHOP LINKS IN SEMI-BOLD ---------- */
.t-LinksList-item:nth-child(-n+4) > .t-LinksList-link {
    font-weight: 600;
}


/* ---------- 5. ICONS (tinted circle + line icon, home-page colours) ---------- */
/* 1. Toys */
.t-LinksList .t-LinksList-item:nth-child(1) > .t-LinksList-link::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 40%22%3E%3Ccircle cx=%2220%22 cy=%2220%22 r=%2220%22 fill=%22%23FFE8EC%22/%3E%3Cg transform=%22translate%2810 10%29 scale%28.8333%29%22 fill=%22none%22 stroke=%22%23E8344E%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%2212%22 width=%228%22 height=%228%22 rx=%221.5%22/%3E%3Crect x=%2213%22 y=%2212%22 width=%228%22 height=%228%22 rx=%221.5%22/%3E%3Crect x=%228%22 y=%223%22 width=%228%22 height=%228%22 rx=%221.5%22/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 2. Girls Fashion */
.t-LinksList .t-LinksList-item:nth-child(2) > .t-LinksList-link::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 40%22%3E%3Ccircle cx=%2220%22 cy=%2220%22 r=%2220%22 fill=%22%23FFE8EC%22/%3E%3Cg transform=%22translate%2810 10%29 scale%28.8333%29%22 fill=%22none%22 stroke=%22%23D6336C%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 2h6v3l-1.5 3L19 21H5l5.5-13L9 5z%22/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 3. Boys Fashion */
.t-LinksList .t-LinksList-item:nth-child(3) > .t-LinksList-link::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 40%22%3E%3Ccircle cx=%2220%22 cy=%2220%22 r=%2220%22 fill=%22%23EAF3FF%22/%3E%3Cg transform=%22translate%2810 10%29 scale%28.8333%29%22 fill=%22none%22 stroke=%22%232563EB%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 3 4 5 2 9l3 2 1.5-1V21h11V10l1.5 1 3-2-2-4-4-2c0 1.7-1.8 3-4 3S8 4.7 8 3z%22/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 4. New Born */
.t-LinksList .t-LinksList-item:nth-child(4) > .t-LinksList-link::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 40%22%3E%3Ccircle cx=%2220%22 cy=%2220%22 r=%2220%22 fill=%22%23FFF4D6%22/%3E%3Cg transform=%22translate%2810 10%29 scale%28.8333%29%22 fill=%22none%22 stroke=%22%23B7791F%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 2h4v3h-4z%22/%3E%3Cpath d=%22M9 5h6l1 3v12a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V8z%22/%3E%3Cpath d=%22M8 12h8%22/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 5. Your Account */
.t-LinksList .t-LinksList-item:nth-child(5) > .t-LinksList-link::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 40%22%3E%3Ccircle cx=%2220%22 cy=%2220%22 r=%2220%22 fill=%22%23E6F6EF%22/%3E%3Cg transform=%22translate%2810 10%29 scale%28.8333%29%22 fill=%22none%22 stroke=%22%2317915A%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8%22/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 6. Your Order */
.t-LinksList .t-LinksList-item:nth-child(6) > .t-LinksList-link::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 40%22%3E%3Ccircle cx=%2220%22 cy=%2220%22 r=%2220%22 fill=%22%23EAF3FF%22/%3E%3Cg transform=%22translate%2810 10%29 scale%28.8333%29%22 fill=%22none%22 stroke=%22%231B2A4A%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 8 12 3 3 8v8l9 5 9-5z%22/%3E%3Cpath d=%22M3 8l9 5 9-5%22/%3E%3Cpath d=%22M12 13v8%22/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 7. About Us */
.t-LinksList .t-LinksList-item:nth-child(7) > .t-LinksList-link::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 40%22%3E%3Ccircle cx=%2220%22 cy=%2220%22 r=%2220%22 fill=%22%23FFF4D6%22/%3E%3Cg transform=%22translate%2810 10%29 scale%28.8333%29%22 fill=%22none%22 stroke=%22%23B7791F%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 10v10h16V10%22/%3E%3Cpath d=%22M3 10 5 4h14l2 6z%22/%3E%3Cpath d=%22M10 20v-5h4v5%22/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 8. Contact Us */
.t-LinksList .t-LinksList-item:nth-child(8) > .t-LinksList-link::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 40%22%3E%3Ccircle cx=%2220%22 cy=%2220%22 r=%2220%22 fill=%22%23E6F6EF%22/%3E%3Cg transform=%22translate%2810 10%29 scale%28.8333%29%22 fill=%22none%22 stroke=%22%2317915A%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z%22/%3E%3C/g%3E%3C/svg%3E") !important;
}


/* ---------- 6. TOP BLOCK — greeting + quick chips (menu-blocks.html) ---------- */
.ks-menu-top,
.ks-menu-foot,
.ks-menu-top *,
.ks-menu-foot * {
    box-sizing: border-box;
}

.ks-menu-top {
    padding: 16px 16px 4px;
    max-width: 100%;
    overflow: hidden;
}

.ks-menu-hello {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: var(--ks-ink);
    color: #fff;
}

.ks-menu-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.ks-menu-avatar svg {
    width: 22px;
    height: 22px;
}

.ks-menu-hello-text {
    flex: 1 1 140px;
    min-width: 0;
}

.ks-menu-hello b {
    display: block;
    font-family: var(--ks-font-head) !important;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.ks-menu-hello small {
    white-space: normal;
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
}

.ks-menu-hello a.ks-menu-signin {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ks-sun);
    color: var(--ks-ink) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.ks-menu-top--chips {
    padding-top: 0;
}

.ks-menu-chips {
    display: flex;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ks-menu-chips::-webkit-scrollbar {
    display: none;
}

.ks-menu-chips a {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid var(--ks-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ks-ink) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
}

.ks-menu-chips a:first-child {
    border-color: transparent;
    background: var(--ks-tint-pink);
    color: var(--ks-red) !important;
    font-weight: 600;
}

.ks-menu-chips a:hover {
    border-color: var(--ks-ink);
}


/* ---------- 7. BOTTOM BLOCK — help + store + policies ---------- */
.ks-menu-foot {
    margin: 8px 16px 0;
    padding: 16px 0 24px;
    border-top: 1px solid var(--ks-line);
}

.ks-menu-help {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ks-menu-help a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.ks-menu-help a svg {
    width: 18px;
    height: 18px;
}

.ks-menu-help .ks-menu-wa {
    background: var(--ks-wa);
    color: #fff !important;
}

.ks-menu-help .ks-menu-call {
    border: 1px solid var(--ks-line);
    background: #fff;
    color: var(--ks-ink) !important;
}

.ks-menu-store {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--ks-tint-mint);
    color: var(--ks-ink) !important;
    text-decoration: none !important;
}

.ks-menu-store svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--ks-green);
}

.ks-menu-store b {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ks-menu-store small {
    display: block;
    font-size: 12.5px;
    color: var(--ks-muted);
}

.ks-menu-store span:last-child {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--ks-green);
    white-space: nowrap;
}

.ks-menu-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 16px;
    padding: 0 2px;
}

.ks-menu-policies a {
    font-size: 12.5px;
    color: var(--ks-muted) !important;
    text-decoration: none !important;
}

.ks-menu-policies a:hover {
    color: var(--ks-ink) !important;
    text-decoration: underline !important;
}


/* ==========================================================================
   11. PHONE HEADER — ONE LINE:  ☰  LOGO  [ search ]  icons
       Add-on only: paste at the very END of kindershop-sections.css.
       Nothing above is changed.
   ========================================================================== */
@media (max-width: 640px) {
    .t-Header-branding {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    /* 1st ☰ menu, 2nd logo */
    .t-Header-logo {
        display: flex !important;
        align-items: center;
        flex: 0 0 auto;
        gap: 4px !important;
        position: static !important;
    }

    /* the logo was pinned to the top-left corner by the home page CSS
       (.kinders-logo = position: fixed) — put it back in the row */
    .kinders-logo,
    .t-Header-logo-link,
    .t-Header-logo-link img,
    .t-Header-logo .apex-logo-img {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .t-Header-logo #back {
        order: 0;
    }

    .t-Header-logo-link {
        order: 2 !important;
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    .t-Header-logo #Menu {
        order: 1 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 40px;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* bigger logo */
    .t-Header-logo-link img,
    .t-Header-logo img,
    .kinders-logo {
        width: auto !important;
        height: 44px !important;
        max-height: 44px !important;
    }

    /* the hidden search-results box takes no room in the row */
    .t-Header-logo .t-ResultsRegion {
        position: absolute !important;
        left: 0;
        right: 0;
        top: 100%;
    }

    /* 3rd: search fills the space that is left */
    .t-Header-navBar {
        display: flex !important;
        align-items: center;
        gap: 2px;
        flex: 1 1 auto !important;
        min-width: 0;
    }

    .t-Header-navBar--end {
        order: 1;
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .t-Header-navBar--center {
        order: 2;
        flex: 0 0 auto;
    }

    .t-NavigationBar-item.searchnav {
        display: none !important;
    }

    .t-Header :is(input[type="search"], input[type="text"]) {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        padding: 0 12px 0 36px !important;
        line-height: 40px !important;
        background-position: 12px center !important;
        background-size: 16px 16px !important;
    }

    #searchbtn {
        display: flex;
        align-items: center !important;
        width: 100%;
        height: 40px !important;
        line-height: 1 !important;
    }

    #searchbtn .t-Button-label {
        line-height: 1 !important;
        padding: 0 !important;
    }

    /* 4th: icons, a little tighter */
    .t-NavigationBar-item .t-Button--navBar,
    .t-NavigationBar-item > a,
    .t-NavigationBar-item > button {
        height: 40px !important;
        padding: 0 6px !important;
    }
}


/* ==========================================================================
   12. SEARCH SUGGESTIONS — the list under the search box, on EVERY page
       Add-on: paste at the very END of kindershop-sections.css.
       (photo · name · details · price, full width, clickable rows)
   ========================================================================== */

/* the dropdown is measured from the whole header row, not the small logo box */
.t-Header-branding {
    position: relative;
}

.t-Header-logo {
    position: static !important;
}

#R15306171940047042,
.t-Header .t-ResultsRegion {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    z-index: 950;
    margin: 0 !important;
    padding: 0 var(--ks-gutter, 40px) !important;
    background: transparent !important;
    pointer-events: none;            /* the empty frame never blocks taps */
}

.t-Header .a-SearchResults {
    position: static !important;
    width: 100% !important;
    max-width: 760px;
    max-height: 70vh;
    margin: 6px auto 0 !important;
    padding: 6px 0;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid var(--ks-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(27, 42, 74, 0.16);
    pointer-events: auto;
}

/* no results yet → no empty box */
.t-Header .a-SearchResults:not(:has(.a-SearchResults-list > *)) {
    display: none !important;
}

.a-SearchResults-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.a-SearchResults-item {
    margin: 0 !important;
    border: 0 !important;
}

.a-SearchResults-item + .a-SearchResults-item {
    border-top: 1px solid var(--ks-line) !important;
}

/* one result = photo | name + details | price */
.a-ResultsItem {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 16px !important;
    background: #fff;
    transition: background-color 0.15s ease;
}

.a-ResultsItem:hover {
    background: var(--ks-soft);
}

/* small photo: 48px high, width follows the photo, so the whole picture
   shows and it touches its border (no empty space around it) */
.a-ResultsItem-image {
    flex: 0 0 auto !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 64px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--ks-line) !important;
    border-radius: 8px;
    background: #fff !important;
    box-sizing: content-box;
}

.a-ResultsItem-image img {
    display: block;
    width: auto !important;
    height: 48px !important;
    max-width: 64px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    background: #fff !important;
}

/* no extra lines, boxes or gaps from the theme */
.a-SearchResults-item,
.a-ResultsItem,
.a-ResultsItem-header,
.a-ResultsItem-title,
.a-ResultsItem-title a {
    border: 0 !important;
    box-shadow: none !important;
}

.a-SearchResults-item {
    padding: 0 !important;
    border-radius: 0 !important;
}

.a-ResultsItem-content {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    padding: 0 !important;
}

.a-ResultsItem-header {
    display: contents !important;
}

.a-ResultsItem-title {
    grid-column: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35;
}

.a-ResultsItem-title a {
    display: inline !important;
    padding: 0 !important;
    color: var(--ks-ink) !important;
    text-decoration: none !important;
}

/* the whole row is clickable, not just the name */
.a-ResultsItem-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* "Rs: 743" price on the right */
.a-ResultsItem-badge {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 4px 10px;
    border: 0 !important;
    border-radius: 999px;
    background: var(--ks-tint-mint) !important;
    color: var(--ks-green) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

/* "Category" / "Product" as a small grey tag + details on one line */
.a-ResultsItem-subTitle {
    display: none !important;
}

.a-ResultsItem-description {
    grid-column: 1;
    margin: 0 !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12.5px !important;
    line-height: 1.4;
    color: var(--ks-muted) !important;
}

/* the image address shown as text under products is not needed */
.a-ResultsItem-attributes {
    display: none !important;
}

/* DESKTOP: the list opens exactly under the search bar, same width.
   (uses the browser's "anchor" feature; older browsers keep the
   centred list above) */
@supports (anchor-name: --ks-search) {
    @media (min-width: 641px) {
        #P0_NEW {
            anchor-name: --ks-search;
        }

        #R15306171940047042,
        .t-Header .t-ResultsRegion {
            position: fixed !important;
            position-anchor: --ks-search;
            top: calc(anchor(bottom) + 6px) !important;
            left: anchor(left) !important;
            right: auto !important;
            width: anchor-size(width) !important;
            padding: 0 !important;
        }

        .t-Header .a-SearchResults {
            max-width: none !important;
            margin: 0 !important;
        }
    }
}


@media (max-width: 640px) {
    #R15306171940047042,
    .t-Header .t-ResultsRegion {
        padding: 0 8px !important;
    }

    .t-Header .a-SearchResults {
        max-height: calc(100vh - 140px);
    }

    .a-ResultsItem {
        padding: 10px 12px !important;
    }
}


/* ==========================================================================
   11. PHONE HEADER — ONE LINE:  ☰  LOGO  [ search ]  icons
       Add-on only: paste at the very END of kindershop-sections.css.
       Nothing above is changed.
   ========================================================================== */
@media (max-width: 640px) {
    .t-Header-branding {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    /* 1st ☰ menu, 2nd logo */
    .t-Header-logo {
        display: flex !important;
        align-items: center;
        flex: 0 0 auto;
        gap: 4px !important;
        position: static !important;
    }

    /* the logo was pinned to the top-left corner by the home page CSS
       (.kinders-logo = position: fixed) — put it back in the row */
    .kinders-logo,
    .t-Header-logo-link,
    .t-Header-logo-link img,
    .t-Header-logo .apex-logo-img {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .t-Header-logo #back {
        order: 0;
    }

    .t-Header-logo-link {
        order: 2 !important;
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    .t-Header-logo #Menu {
        order: 1 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 40px;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* bigger logo */
    .t-Header-logo-link img,
    .t-Header-logo img,
    .kinders-logo {
        width: auto !important;
        height: 44px !important;
        max-height: 44px !important;
    }

    /* the hidden search-results box takes no room in the row */
    .t-Header-logo .t-ResultsRegion {
        position: absolute !important;
        left: 0;
        right: 0;
        top: 100%;
    }

    /* 3rd: search fills the space that is left */
    .t-Header-navBar {
        display: flex !important;
        align-items: center;
        gap: 2px;
        flex: 1 1 auto !important;
        min-width: 0;
    }

    .t-Header-navBar--end {
        order: 1;
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .t-Header-navBar--center {
        order: 2;
        flex: 0 0 auto;
    }

    .t-NavigationBar-item.searchnav {
        display: none !important;
    }

    .t-Header :is(input[type="search"], input[type="text"]) {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        padding: 0 12px 0 36px !important;
        line-height: 40px !important;
        background-position: 12px center !important;
        background-size: 16px 16px !important;
    }

    #searchbtn {
        display: flex;
        align-items: center !important;
        width: 100%;
        height: 40px !important;
        line-height: 1 !important;
    }

    #searchbtn .t-Button-label {
        line-height: 1 !important;
        padding: 0 !important;
    }

    /* 4th: icons, a little tighter */
    .t-NavigationBar-item .t-Button--navBar,
    .t-NavigationBar-item > a,
    .t-NavigationBar-item > button {
        height: 40px !important;
        padding: 0 6px !important;
    }
}


/* Voice search button (moved from CSS File URLs) */
.global-mic-container {
  position: fixed;
  bottom: 50px;
  right: 25px;
  z-index: 2000;
}
.global-mic-btn {
  background-color: var(--ut-palette-primary, #0066cc);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.global-mic-btn:hover {
  background-color: var(--ut-palette-primary-dark, #004499);
  transform: scale(1.08);
}
.global-mic-btn:active {
  transform: scale(0.95);
}


/* ===== Modal dialog title bar + close button (all dialogs) ===== */
.ui-dialog .ui-dialog-titlebar{
  position:relative !important;
  display:flex !important; align-items:center;
  min-height:60px;
  padding:14px 62px 14px 18px !important;
  background:#fff !important;
  border-bottom:1px solid #eef0f4 !important;
}
.ui-dialog .ui-dialog-title{
  flex:1 1 auto; margin:0 !important; float:none !important; width:auto !important;
  font-size:17px; font-weight:700; color:#14284b;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ui-dialog .ui-dialog-title::before,
.ui-dialog .ui-dialog-title::after{ content:none !important; }

/* Close button – round, right side, vertically centred */
.ui-dialog .ui-dialog-titlebar-close{
  position:absolute !important;
  top:50% !important; right:14px !important; left:auto !important; bottom:auto !important;
  transform:translateY(-50%) !important;
  width:36px !important; height:36px !important; min-width:0 !important;
  margin:0 !important; padding:0 !important;
  border:0 !important; border-radius:50% !important;
  background:#f1f3f6 !important; box-shadow:none !important;
  display:flex !important; align-items:center; justify-content:center;
  font-size:0 !important; text-indent:0 !important; overflow:hidden !important;
  cursor:pointer;
}
.ui-dialog .ui-dialog-titlebar-close > *{ display:none !important; }
.ui-dialog .ui-dialog-titlebar-close::before{
  content:"\2715";
  font-size:15px; line-height:1; font-weight:600;
  color:#14284b;
}
.ui-dialog .ui-dialog-titlebar-close:hover{ background:#e4e8ee !important; }
.ui-dialog .ui-dialog-titlebar-close:focus-visible{
  outline:2px solid #14284b; outline-offset:2px;
}