/* ==========================================================================
   Kwiaciarnia Miłość — Main Stylesheet
   Design: White + Pink + Black, Montserrat, Clean/Modern
   Reference: current kwiaciarniamilosc.pl + bloomflowers.pl
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────
   Accessibility — global reduced-motion + focus-visible (Sprint 2)
   ────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .km-hero-slide { animation: none !important; }
    .km-product-card:hover, .km-cat-card:hover, .km-cat-story:hover {
        transform: none !important;
    }
}

/* Universal focus-visible — keyboard-only outlines on interactive elements */
.km-pill:focus-visible,
.km-cat-link:focus-visible,
.km-product-card-link:focus-visible,
.km-btn:focus-visible,
.km-hero-cta:focus-visible,
.km-hero-dot:focus-visible,
.km-cat-story:focus-visible,
.km-faq-q:focus-visible,
.km-sidecart-btn:focus-visible,
.km-sidecart-close:focus-visible,
.km-cart-btn:focus-visible,
.km-account-btn:focus-visible,
.km-menu-toggle:focus-visible,
.km-search-toggle:focus-visible {
    outline: 2px solid #9c1f5e;
    outline-offset: 2px;
}

/* Category card image — absolute positioning fixes Safari iOS aspect-ratio bug
   where the wrapper collapses and the <img> shows only a top sliver. */
.km-cat-story-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #faf7f4;
}
.km-cat-story-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Newsletter RODO description (split from short accessible label) */
.km-nl-consent-desc {
    margin: 6px 0 0;
    padding-left: 28px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}
.km-nl-consent-desc a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

/* ---------- CSS Variables ---------- */
:root {
    /* Colors — vibrant pink palette */
    --km-pink: #f07aaa;
    --km-pink-dark: #e8438a;
    --km-pink-light: #fce8f2;
    --km-pink-soft: #fdf3f8;
    --km-rose: #e8438a;
    --km-black: #1f1f1f;
    --km-dark: #333333;
    --km-grey: #6b6b6b;
    --km-grey-light: #e8e4e0;
    --km-cream: #faf7f4;
    --km-white: #ffffff;

    /* Typography */
    --km-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --km-font-serif: 'Montserrat', sans-serif;

    /* Spacing */
    --km-gap: 24px;
    --km-radius: 24px;
    --km-radius-sm: 12px;
    --km-radius-pill: 50px;

    /* Focus ring — alias allows brand-independent theming of all :focus-visible outlines */
    --km-focus: var(--km-pink);

    /* Hero text shadow — single token for all hero elements */
    --km-hero-text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.45);

    /* Transitions */
    --km-ease: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Shadows */
    --km-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --km-shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --km-shadow-lg: 0 8px 30px rgba(0,0,0,0.08);

    /* Layout */
    --km-max-width: 1440px;
    --km-sidebar-width: 220px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--km-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--km-dark);
    background: #F9F9F9;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
    font-family: var(--km-font);
    font-size: inherit;
}

/* ---------- Utility ---------- */
.km-container {
    max-width: var(--km-max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.km-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--km-font);
    font-weight: 500;
    line-height: 1.2;
    color: var(--km-black);
}
h1, h2 { font-family: var(--km-font-serif); }
h1 { font-size: 48px; font-weight: 300; letter-spacing: 2px; }
h2 { font-size: 36px; font-weight: 300; letter-spacing: 0.5px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

/* ---------- Buttons ---------- */
.km-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all var(--km-ease);
    text-decoration: none;
}
.km-btn-primary {
    background: var(--km-black);
    color: var(--km-white);
}
.km-btn-primary:hover {
    background: #9c1f5e;
}
.km-btn-outline {
    background: transparent;
    color: var(--km-black);
    border: 1.5px solid var(--km-black);
}
.km-btn-outline:hover {
    background: var(--km-pink-light);
    border-color: var(--km-pink);
}
.km-btn-pink {
    background-color: #9c1f5e !important;
    color: #ffffff !important;
    border: none !important;
    opacity: 1 !important;
}
.km-btn-pink:hover {
    background-color: #7a1849 !important;
}

/* ---------- Delivery Banner ---------- */
.km-delivery-banner {
    background: #9c1f5e;
    color: var(--km-white);
    text-align: center;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    max-height: 44px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}
.km-delivery-banner strong { font-weight: 700; }

/* ---------- Header — full-width bar, contained content ---------- */
.km-header {
    background: var(--km-white);
    border-bottom: 1px solid #f0ece8;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-anchor: none; /* stop scroll-anchoring from rebounding scrollY when top-bar collapses */
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.km-header--scrolled {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom-color: rgba(240,236,232,0.6);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.km-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 40px;
    max-width: var(--km-max-width);
    margin: 0 auto;
}
.km-header-inner .km-logo { justify-self: start; }
.km-header-inner .km-nav { justify-self: center; }
.km-header-inner .km-header-actions { justify-self: end; }
.km-logo { flex-shrink: 0; }
.km-logo img,
.km-logo .custom-logo {
    height: 64px !important;
    width: auto !important;
    max-height: 64px !important;
    object-fit: contain;
    filter: brightness(0.85) contrast(1.1);
}
.km-logo-text {
    font-size: 26px;
    font-weight: 500;
    color: var(--km-pink-dark);
    letter-spacing: 1px;
}
.km-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px;
    color: var(--km-dark);
}
.km-menu-toggle:focus-visible {
    outline: 2px solid var(--km-focus);
    outline-offset: 2px;
    border-radius: var(--km-radius-sm);
}
.km-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}
.km-nav-secondary {
    display: flex;
    align-items: center;
    gap: 40px;
}
.km-nav a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--km-dark);
    transition: color var(--km-ease);
    white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { .km-nav a { transition: none; } }
.km-nav a:hover { color: var(--km-pink-dark); }
.km-nav a:focus-visible {
    outline: 2px solid var(--km-focus);
    outline-offset: 3px;
    border-radius: 2px;
}
.km-nav a[aria-current="page"] {
    color: var(--km-pink-dark);
    font-weight: 600;
}
.km-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
/* km-btn-header removed — ZAMÓW button replaced by search */

/* Cart button — bordered box with icon */
.km-cart-wrapper { position: relative; }
.km-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--km-dark);
    border-radius: var(--km-radius-sm);
    background: var(--km-white);
    cursor: pointer;
    position: relative;
    transition: all var(--km-ease);
    color: var(--km-dark);
}
.km-cart-btn:hover {
    border-color: var(--km-pink);
    color: var(--km-pink-dark);
}
.km-cart-btn:focus-visible {
    outline: 2px solid var(--km-pink);
    outline-offset: 2px;
}
.km-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--km-pink-dark);
    color: var(--km-white);
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--km-white);
}

/* Cart dropdown */
.km-cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--km-white);
    border: 1px solid #eee;
    border-radius: var(--km-radius);
    box-shadow: var(--km-shadow-lg);
    padding: 20px;
    z-index: 200;
}
.km-cart-dropdown.km-cart-open { display: block; }
.km-cart-empty {
    color: var(--km-grey);
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}
.km-cart-items { margin-bottom: 14px; }
.km-cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f2ef;
}
.km-cart-item:last-child { border-bottom: none; }
.km-cart-item-img { width: 50px; height: 50px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.km-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.km-cart-item-name { font-size: 13px; font-weight: 500; color: var(--km-dark); display: block; line-height: 1.3; }
.km-cart-item-qty { font-size: 12px; color: var(--km-grey); }
.km-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 4px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: var(--km-dark);
}

/* ---------- Header Search ---------- */
.km-header-search {
    display: flex;
    align-items: center;
    position: relative;
    width: 200px;
}
.km-header-search input {
    width: 100%;
    padding: 9px 36px 9px 14px;
    border: 1.5px solid #c8c4c0;
    border-radius: var(--km-radius-pill);
    font-size: 12px;
    font-family: var(--km-font);
    outline: none;
    background: var(--km-white);
    color: var(--km-dark);
    transition: border-color var(--km-ease), width var(--km-ease);
}
.km-header-search input::placeholder { color: #767676; }
.km-header-search input:focus {
    border-color: var(--km-pink);
    width: 100%;
}
.km-header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--km-grey);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--km-ease);
}
.km-header-search button:hover { color: var(--km-pink-dark); }

/* ---------- Footer ---------- */
.km-footer {
    background: #1c0f18;
    color: rgba(255,255,255,0.65);
    position: relative;
    overflow: hidden;
}

/* Decorative ghost watermark */
.km-footer::before {
    content: 'M';
    position: absolute;
    bottom: -60px;
    left: -30px;
    font-family: var(--km-font-serif);
    font-size: clamp(280px, 30vw, 480px);
    font-weight: 300;
    color: rgba(255,255,255,0.025);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* CTA strip — Hero button plum (#9c1f5e) for site-wide consistency */
.km-footer-cta {
    background: #9c1f5e;
    border-bottom: none;
    padding: 72px 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.km-footer-cta-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}
.km-footer-cta-link {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255,255,255,0.4);
    padding-bottom: 1px;
    transition: border-color var(--km-ease), opacity var(--km-ease);
}
.km-footer-cta-link:hover { border-bottom-color: #ffffff; opacity: 0.9; }
.km-footer-cta-link:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 2px; }

/* Grid */
.km-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--km-max-width);
    margin: 0 auto;
    padding: 28px 40px 28px;
    position: relative;
    z-index: 1;
}

/* Column headings */
.km-footer-col-heading {
    color: #d4789e !important;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 0 0 22px;
    padding-bottom: 0;
    position: relative;
}
.km-footer-col-heading::after { display: none; }

/* Brand column */
.km-footer-wordmark { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.km-footer-logo-link { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.km-footer-logo { height: 56px; width: auto; display: block; filter: brightness(0) invert(1); }
.km-footer-wordmark-name {
    display: block;
    font-family: var(--km-font-serif);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #ffffff;
    line-height: 1;
}
.km-footer-desc { font-size: 13px; line-height: 1.85; color: rgba(255,255,255,0.85); margin: 0 0 28px; }

/* Social icons */
.km-footer-social { display: flex; gap: 10px; }
.km-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color var(--km-ease), border-color var(--km-ease), background-color var(--km-ease);
}
@media (prefers-reduced-motion: reduce) { .km-footer-social-link { transition: none; } }
.km-footer-social-link:hover {
    color: #1c0f18;
    border-color: #d4789e;
    background-color: #d4789e;
}
.km-footer-social-link:focus-visible { outline: 2px solid #d4789e; outline-offset: 2px; }

/* Nav links */
.km-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.km-footer-links li { font-size: 13px; }
.km-footer-links a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    transition: color var(--km-ease);
}
.km-footer-links a::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4789e;
    transition: width 0.3s ease;
}
.km-footer-links a:hover { color: #ffffff; }
.km-footer-links a:hover::after { width: 100%; }
.km-footer-links a:focus-visible { outline: 2px solid #d4789e; outline-offset: 2px; border-radius: 2px; }

/* Contact list with icons */
.km-footer-contact-list { gap: 14px; }
.km-footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,0.88); line-height: 1.55; font-size: 13px; }
.km-footer-contact-list li svg { flex-shrink: 0; margin-top: 2px; color: #d4789e; }
.km-footer-contact-list a { color: rgba(255,255,255,0.88); transition: color var(--km-ease); }
.km-footer-contact-list a:hover { color: #ffffff; }
.km-footer-hours-item span { color: rgba(255,255,255,0.78); }

/* Legal bar (UŚUDE Art. 5) — payment badges + company + NIP + copyright in one block */
.km-footer-legal {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 24px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.km-payment-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: var(--km-max-width);
    margin: 0 auto 16px;
}
.km-pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 1px 2px rgba(0,0,0,0.18);
    opacity: 0.95;
    transition: opacity var(--km-ease), transform var(--km-ease);
}
.km-pay-badge:hover { opacity: 1; transform: translateY(-1px); }
.km-pay-badge svg,
.km-pay-badge img { display: block; height: 20px; width: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .km-pay-badge { transition: none; } .km-pay-badge:hover { transform: none; } }
.km-footer-legal-company,
.km-footer-legal-details,
.km-footer-copyright { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,0.7); margin: 0; }
.km-footer-legal-company { margin-bottom: 2px; }
.km-footer-copyright { margin-top: 8px; color: rgba(255,255,255,0.55); font-size: 11px; }

/* ---------- Sections ---------- */
.km-section { padding: 60px 0; background: #FFFFFF; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.km-section-cream { background: #FFFFFF; }
.km-section.km-section-trustindex { background: #FFFFFF; box-shadow: none; padding: 40px 0 60px; overflow-x: hidden; }
.km-section-trustindex:empty, .km-section-trustindex .km-container:empty { display: none; }
.km-section-trustindex .km-trustindex-widget { width: 100%; max-width: 100%; }
.km-section-trustindex .km-trustindex-widget > * { max-width: 100% !important; }
@media (max-width: 767px) {
    .km-section.km-section-trustindex { padding: 45px 0; }
}
.km-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}
.km-section-header h2 { margin: 0; font-family: var(--km-font-serif); font-weight: 300; }
.km-section-sub {
    color: #555;
    font-size: 15px;
    margin-top: 6px;
}
.km-btn-sm { padding: 9px 22px; font-size: 11px; }

/* ---------- Hero ---------- */
/* ── Hero section ─────────────────────────────────────── */
.km-hero {
    position: relative;
    height: clamp(500px, 62vh, 680px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #6b0f3a 0%, #9c1f5e 35%, #d4437a 65%, #f07aaa 100%);
}

/* Each slide stacks absolutely, fills the hero */
.km-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
}
.km-hero-slide.km-hero-active {
    opacity: 1;
    z-index: 1;
}

/* picture must also fill the slide — img alone won't stretch without this */
.km-hero-slide picture {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* Background image fills slide */
.km-hero img.km-hero-bg-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    will-change: transform;
    display: block !important;
}

/* Ken Burns — 3 directions, one per slide index */
.km-hero-slide:nth-child(1).km-hero-active .km-hero-bg-img {
    animation: kmKB1 10s ease-out forwards;
}
.km-hero-slide:nth-child(2).km-hero-active .km-hero-bg-img {
    animation: kmKB2 10s ease-out forwards;
}
.km-hero-slide:nth-child(3).km-hero-active .km-hero-bg-img {
    animation: kmKB3 10s ease-out forwards;
}
/* Single-slide: always run Ken Burns without JS */
.km-hero:not(.km-hero--slideshow) .km-hero-slide .km-hero-bg-img {
    animation: kmKB1 14s ease-out infinite alternate;
}

@keyframes kmKB1 {
    from { transform: scale(1)    translate(0,    0);    }
    to   { transform: scale(1.07) translate(-1.5%, -0.5%); }
}
@keyframes kmKB2 {
    from { transform: scale(1.06) translate(1%,   0);    }
    to   { transform: scale(1)    translate(-1%,  0.5%); }
}
@keyframes kmKB3 {
    from { transform: scale(1)    translate(-1%,  0.5%); }
    to   { transform: scale(1.07) translate(1%,  -0.5%); }
}

/* Hero overlay — diagonal scrim guarantees legibility on ANY photo */
.km-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 38%, transparent 68%),
        linear-gradient(to top,   rgba(0,0,0,0.42) 0%, transparent 28%);
    pointer-events: none;
}

/* Hero text content */
.km-hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--km-max-width);
    margin: 0 auto;
    padding: 60px 50px;
    color: var(--km-white);
    width: 100%;
}

/* Dot navigation */
.km-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}
.km-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s;
}
.km-hero-dot.km-hero-active {
    background: #fff;
    transform: scale(1.4);
}
/* No box — text shadow only */
.km-hero-text-box {
    max-width: 620px;
}
.km-hero-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.95;
    margin-bottom: 12px;
    font-weight: 500;
    text-shadow: var(--km-hero-text-shadow);
}
.km-hero h1 {
    font-family: var(--km-font-serif);
    font-size: 62px;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--km-white);
    margin-bottom: 12px;
    text-shadow: var(--km-hero-text-shadow);
    line-height: 1.1;
}
.km-hero-sub {
    font-size: 20px;
    font-weight: 500;
    opacity: 1;
    margin-bottom: 28px;
    text-shadow: var(--km-hero-text-shadow);
}
.km-hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}
.km-btn-glass {
    background: #ffffff;
    color: #1f1f1f !important;
    font-weight: 700 !important;
    border: 2px solid rgba(255,255,255,0.9);
}
.km-btn-glass:hover {
    background: #f9f9f9;
    border-color: #ffffff;
    transform: translateY(-2px);
}
.km-hero-trust {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}
.km-stars { color: #ffd700; margin-right: 6px; }

/* ---------- Category Stories Strip ---------------------------------------- */

.km-cat-section {
    padding: 56px 0 64px;
    background: #FFFFFF;
}
.km-cat-section-header {
    text-align: center;
    margin-bottom: 36px;
}
.km-cat-section-header h2 {
    font-family: var(--km-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--km-grey);
    margin: 0 0 10px;
}
.km-cat-section-header p {
    font-family: var(--km-font-serif);
    font-size: 34px;
    font-weight: 300;
    color: var(--km-black);
    margin: 0;
    line-height: 1.2;
}

/* ---------- Category Stories Track ---------- */
.km-cat-stories {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    padding-top: 4px;
}
.km-cat-stories::-webkit-scrollbar { display: none; }
.km-cat-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.km-cat-story-img {
    position: relative;
    width: 140px;
    height: 180px;
    border-radius: 20px;
    background-color: #f0ece8;
    overflow: hidden;
    transition: transform var(--km-ease), box-shadow var(--km-ease);
    will-change: transform;
}
.km-cat-story-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.km-cat-story-img--empty {
    background: linear-gradient(135deg, #fdf0f5 0%, #f5e8f0 100%);
}
.km-cat-story:hover .km-cat-story-img {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.km-cat-story-name {
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--km-black);
    text-align: center;
    max-width: 140px;
    line-height: 1.3;
}
@media (prefers-reduced-motion: reduce) {
    .km-cat-story-img { transition: none; }
    .km-cat-story:hover .km-cat-story-img { transform: none; box-shadow: none; }
}
/* ---------- Products Grid ---------- */
.km-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--km-gap);
}
.km-product-card {
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    text-align: center;
    transition: box-shadow var(--km-ease), transform var(--km-ease);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.km-product-card:hover {
    box-shadow: var(--km-shadow-lg);
    transform: translateY(-4px);
}
.km-product-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.km-product-card-info { padding: 16px 16px 8px; flex: 1; display: flex; flex-direction: column; }
.km-product-card-price { margin-top: auto; }
.km-product-card-img {
    position: relative;
    overflow: hidden;
}
/* Product card images — background-image approach */
.km-product-card-img {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #F5F5F5;
    transition: transform 0.5s ease;
}
.km-product-card:hover .km-product-card-img { transform: scale(1.02); }
/* Hide img tags LiteSpeed injects inside background-image cards (homepage only) */
.km-hero .km-product-card-img img,
.front-page .km-products-grid .km-product-card-img img,
.front-page .km-carousel-track .km-product-card-img img { display: none; }
.km-badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--km-pink-dark);
    color: var(--km-white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--km-radius-pill);
    z-index: 1;
}
.km-product-card-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--km-black);
}
.km-product-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--km-pink-dark);
    margin-bottom: 12px;
}
.km-product-card-price del {
    color: #bbb;
    font-size: 12px;
    font-weight: 400;
    margin-right: 4px;
}
.km-product-card-price ins { text-decoration: none; }
.km-price-from { font-size: 12px; color: var(--km-grey); font-weight: 400; }
/* Product card CTA — deep rose pill */
.km-product-card .km-btn {
    margin-bottom: 16px;
    background: #9c1f5e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
}
.km-product-card .km-btn:hover {
    background: #7a1849 !important;
    color: #ffffff !important;
}

/* ---------- Product Card Heart Icon ---------- */
.km-card-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #cccccc;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
}
.km-card-heart:hover {
    background: #ffffff;
    color: #e8438a;
    transform: scale(1.08);
}
.km-card-heart:focus-visible {
    outline: 2px solid #e8438a;
    outline-offset: 2px;
}

/* ---------- Services ---------- */
/* FIX 4: Bigger icons, larger text */
.km-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.km-service-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--km-radius);
    transition: box-shadow var(--km-ease), transform var(--km-ease);
    background: var(--km-white);
    border: 1px solid #f0ece8;
}
.km-service-card:hover {
    box-shadow: var(--km-shadow-lg);
    transform: translateY(-4px);
}
/* Fix 3: SVG line icons instead of emoji */
.km-service-icon {
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--km-pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--km-pink-dark);
}
.km-service-icon svg {
    width: 28px;
    height: 28px;
}
.km-service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--km-font);
}
.km-service-card p {
    font-size: 14px;
    color: #2d2d2d !important;
    line-height: 1.8;
}

/* ---------- Reviews ---------- */
/* FIX 5: Reviews with testimonials */
.km-reviews-highlight {
    text-align: center;
    margin-bottom: 40px;
}
.km-reviews-number {
    font-size: 56px;
    font-weight: 300;
    color: var(--km-black);
    display: block;
    font-family: var(--km-font);
}
.km-reviews-count {
    display: block;
    color: var(--km-grey);
    font-size: 14px;
    margin-top: 6px;
}
.km-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.km-testimonial {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 28px;
    text-align: left;
    border: 2px solid #EEEEEE;
    box-shadow: none;
}
.km-testimonial-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 16px;
    font-style: italic;
}
.km-testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--km-black);
}
.km-testimonial-author span {
    font-weight: 400;
    color: var(--km-grey);
    margin-left: 4px;
}

/* ---------- Newsletter ---------- */
.km-newsletter {
    background: #9c1f5e !important;
    color: #fff;
    box-shadow: none !important;
    padding: 36px 0 !important;
}
.km-newsletter h2 { margin-bottom: 8px; color: #fff; }
.km-newsletter .km-section-sub { color: rgba(255,255,255,0.85); }
.km-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.km-newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--km-radius-pill);
    outline: none;
    font-size: 14px;
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.km-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.7); }
.km-newsletter-form input[type="email"]:focus { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.25); }
.km-newsletter-form .km-btn { border-radius: var(--km-radius-pill); width: 100%; }
.km-newsletter-form .km-btn:disabled { opacity: 0.6; cursor: wait; }
.km-nl-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
    cursor: pointer;
}
.km-nl-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #fff;
    cursor: pointer;
}
.km-nl-consent a { color: #fff; text-decoration: underline; font-weight: 600; }
.km-nl-consent a:hover { text-decoration: none; }
.km-nl-status { min-height: 0; font-size: 13px; line-height: 1.5; text-align: center; }
.km-nl-status.is-success { color: #fff; background: rgba(255,255,255,0.18); padding: 10px 14px; border-radius: 10px; min-height: 1em; }
.km-nl-status.is-error   { color: #ffe5ee; background: rgba(0,0,0,0.18); padding: 10px 14px; border-radius: 10px; min-height: 1em; }

/* ---------- FAQ ---------- */
.km-faq {
    max-width: 800px;
    margin: 0 auto;
}
.km-faq-item {
    border-bottom: 1px solid var(--km-grey-light);
}
.km-faq-q {
    padding: 18px 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.km-faq-q::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--km-pink-dark);
    transition: transform var(--km-ease);
}
.km-faq-item[open] .km-faq-q::after {
    content: '−';
}
.km-faq-q::-webkit-details-marker { display: none; }
.km-faq-a {
    padding: 0 0 18px;
    font-size: 14px;
    color: var(--km-grey);
    line-height: 1.7;
}

/* ---------- Contact ---------- */
.km-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.km-contact-info { display: flex; flex-direction: column; gap: 16px; }
.km-contact-item strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--km-grey);
    margin-bottom: 4px;
}
.km-contact-item span, .km-contact-item a {
    font-size: 15px;
    color: var(--km-black);
}
.km-contact-item a:hover { color: var(--km-pink-dark); }
/* Fix 3: Map visible and fills space */
.km-map-wrap {
    border-radius: var(--km-radius);
    overflow: hidden;
    min-height: 350px;
}
.km-map-wrap iframe {
    width: 100% !important;
    height: 400px !important;
    min-height: 350px;
    display: block;
}

/* FIX 3: Force CookieYes banner to bottom bar, not floating overlay */
.cky-consent-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
}
.cky-consent-bar {
    border-radius: 0 !important;
}

/* ---------- Global Image Safety ---------- */
.custom-logo-link img,
.wp-custom-logo img {
    max-height: 60px !important;
    width: auto !important;
}

/* Override LiteSpeed lazy-load forced dimensions */
.km-cat-card img[width],
.km-cat-card img[height],
.km-cat-story-img img[width],
.km-cat-story-img img[height],
.km-product-card-img img[width],
.km-product-card-img img[height] {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0 !important;
}
/* Also target LiteSpeed's data attributes */
.km-cat-card img[data-lazyloaded],
.km-cat-story-img img[data-lazyloaded],
.km-product-card-img img[data-lazyloaded],
.km-cat-card img.litespeed-loaded,
.km-cat-story-img img.litespeed-loaded,
.km-product-card-img img.litespeed-loaded {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    object-fit: cover !important;
}

/* ---------- Blog ---------- */
.km-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--km-gap);
}
.km-blog-card {
    border-radius: var(--km-radius);
    overflow: hidden;
    border: 1px solid #f0ece8;
    transition: box-shadow var(--km-ease), transform var(--km-ease);
}
.km-blog-card:hover {
    box-shadow: var(--km-shadow-lg);
    transform: translateY(-3px);
}
.km-blog-card-link { display: block; color: inherit; }
.km-blog-card-img { overflow: hidden; }
.km-blog-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.km-blog-card:hover .km-blog-card-img img { transform: scale(1.04); }
.km-blog-card-info { padding: 20px; }
.km-blog-date {
    font-size: 11px;
    color: var(--km-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.km-blog-title {
    font-size: 17px;
    font-weight: 500;
    margin: 8px 0;
    color: var(--km-black);
    line-height: 1.3;
}
.km-blog-excerpt {
    font-size: 13px;
    color: var(--km-grey);
    line-height: 1.6;
    margin-bottom: 12px;
}
.km-blog-read {
    font-size: 12px;
    font-weight: 600;
    color: var(--km-pink-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content pages */
.km-content h2 { font-size: 22px; margin: 24px 0 12px; }
.km-content h3 { font-size: 18px; margin: 20px 0 10px; }
.km-content p { margin-bottom: 14px; }
.km-content ul, .km-content ol { margin: 12px 0; padding-left: 24px; list-style: disc; }
.km-content li { margin-bottom: 6px; }
.km-content a { color: var(--km-pink-dark); }
.km-content a:hover { color: var(--km-pink-dark); }
.km-content img { border-radius: var(--km-radius); margin: 16px 0; }

/* ---------- Shop Sidebar Collapse (mobile) ---------- */
.km-sidebar-toggle { display: none; }
@media (max-width: 991px) {
    .km-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: var(--km-white);
        border: 1px solid var(--km-grey-light);
        border-radius: var(--km-radius-sm);
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        color: var(--km-dark);
        margin-bottom: 4px;
    }
    .km-sidebar-toggle svg { transition: transform var(--km-ease); }
    .km-sidebar-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
    .km-sidebar-inner { display: none; }
    .km-sidebar-inner.km-sidebar-open { display: block; }
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .km-header-inner { padding: 10px 16px; display: flex; justify-content: space-between; }
    .km-logo img, .km-logo .custom-logo { height: 38px !important; max-height: 38px !important; filter: brightness(0.85) contrast(1.1); }
    .km-header-search { display: none; }
    .km-nav { display: none; }
    /* Full-screen overlay for .km-nav.km-nav-open is defined in header.php critical CSS
       — do not redeclare here, it must remain position:fixed; inset:0. */
    .km-menu-toggle { display: block !important; }
    .km-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px 24px 36px; }
    .km-footer-about { grid-column: 1 / -1; }
    .km-hero { height: clamp(440px, 58vh, 580px); }
    .km-hero h1 { font-size: 42px; letter-spacing: 4px; }
    .km-hero-content { padding: 50px 24px; }
    .km-products-grid { grid-template-columns: repeat(2, 1fr); }
    .km-services-grid { grid-template-columns: repeat(2, 1fr); }
    .km-contact-grid { grid-template-columns: 1fr; }
    .km-section-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .km-blog-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
}
@media (max-width: 767px) {
    .km-footer-inner { grid-template-columns: 1fr; padding: 44px 20px 32px; }
    .km-container { padding: 0 16px; }
    .km-hero { height: 450px; margin: 12px 12px 0; border-radius: 32px; overflow: hidden; }
    .km-hero h1 { font-size: 34px; letter-spacing: 3px; }
    .km-hero-sub { font-size: 16px; }
    .km-hero-content { text-align: center; padding: 40px 28px; }
    .km-hero-text-box { max-width: 100%; }
    .km-hero-actions { flex-direction: column; gap: 10px; align-items: center; }
    .km-hero-trust { display: flex; justify-content: center; align-items: center; }
    .km-hero .km-btn { border-radius: 50px !important; height: 50px; min-width: 200px; justify-content: center; }
    .km-hero-dots { bottom: 16px; }
    .km-section { padding: 40px 0; }
    .km-services-grid { grid-template-columns: 1fr; }
    .km-testimonials { grid-template-columns: 1fr; }
    .km-newsletter-form { flex-direction: column; }
    .km-blog-grid { grid-template-columns: 1fr; }

    .km-cat-section-header p { font-size: 26px; }
    .km-occasions-scroll { justify-content: flex-start !important; }
}


/* ---------- Top Bar ---------- */
.km-top-bar {
    background-color: var(--km-rose, #e8438a);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    letter-spacing: 1px;
    z-index: 100;
    position: relative;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

/* ── Compact header on scroll (top-bar.js) ──────────────────────────────── */
body.km-header-compact .km-top-bar,
body.km-header-compact .km-delivery-banner {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .km-top-bar,
    .km-delivery-banner { transition: none; }
}

/* ---------- Occasions Bar ---------- */
.km-occasions-bar {
    padding: 30px 20px 0;
    background: var(--km-white);
}
.km-occasions-scroll {
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding-bottom: 10px !important;
    max-width: 1200px;
    margin: 0 auto;
}
.km-occasions-scroll::-webkit-scrollbar { display: none; }
a.km-pill {
    /* !important throughout: upstream Elementor specificity forces this for all pill rules */
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    padding: 10px 24px !important;
    /* min-height instead of 12px vertical padding: pills are in a horizontal-scroll row;
       extra padding would push rendered height to ~44px naturally but risks two-row wrap
       at 375px. min-height: 44px is the safe WCAG 2.5.5 path that keeps layout intact. */
    min-height: 44px !important;
    border: 1.5px solid var(--km-pink, #f187b8) !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--km-black, #1f1f1f) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}
a.km-pill:hover {
    background-color: var(--km-pink, #f187b8) !important;
    color: #ffffff !important;
}
a.km-pill:focus-visible {
    outline: 2px solid var(--km-pink) !important;
    outline-offset: 2px !important;
}

/* ---------- B2B Banner ---------- */
.km-b2b-banner { padding: 60px 0; }
.km-b2b-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.km-b2b-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #fce8f2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.km-b2b-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.km-b2b-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #fce8f2 0%, #fdf3f8 50%, #fff0f6 100%);
    position: relative;
    overflow: hidden;
}
.km-b2b-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(240,122,170,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(156,31,94,0.12) 0%, transparent 55%);
}
.km-b2b-image-placeholder svg { position: relative; z-index: 1; opacity: 0.45; width: 80px; height: 80px; }
.km-b2b-text { text-align: left; }
.km-b2b-text h2 {
    color: #9c1f5e;
    margin-bottom: 16px;
    font-size: 32px;
}
.km-b2b-text p { margin-bottom: 28px; color: #555; line-height: 1.7; }
@media (max-width: 767px) {
    .km-b2b-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .km-b2b-text { text-align: center; }
}

/* ---------- Category Cross-links ---------- */
.km-cat-crosslinks {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--km-grey-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.km-cat-crosslinks-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--km-grey);
    font-size: 11px;
}
.km-cat-crosslinks a {
    padding: 7px 16px;
    border: 1.5px solid var(--km-grey-light);
    border-radius: var(--km-radius-pill);
    color: var(--km-dark);
    font-size: 12px;
    font-weight: 500;
    transition: border-color var(--km-ease), color var(--km-ease);
    text-decoration: none;
}
.km-cat-crosslinks a:hover {
    border-color: var(--km-pink);
    color: var(--km-pink-dark);
}

/* ---------- Reduced Motion — respect user preference ---------- */
@media (prefers-reduced-motion: reduce) {
    .km-hero img.km-hero-bg-img { animation: none; }
    .km-hero-slide { transition: opacity 0.1s; }
    .km-product-card,
    .km-btn { transition: none; }
    .km-product-card:hover .km-product-card-img { transform: none; }
}

/* ==========================================================================
   BLOOM EDITORIAL REDESIGN — desktop homepage v1.5
   - Black promo bar (no clock icon)
   - Serif logo fallback + simplified header actions
   - Contained hero card with bottom-left bold sans heading
   - Polecane carousel (5-up) with arrows + "zobacz więcej" link
   - Section heading: sans + pink underline accent
   - Product card: lighter, no inline CTA, dark "New" badge
   ========================================================================== */

/* Top bar — plain black */
.km-top-bar {
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 10px 16px;
    text-transform: none;
}

/* Logo: serif text fallback when no image is set */
.km-logo-serif {
    font-family: var(--km-font-serif);
    font-weight: 400;
    font-size: 36px;
    letter-spacing: 4px;
    color: var(--km-black);
    text-transform: uppercase;
    line-height: 1;
}

/* Header actions: search toggle + wishlist (icon-only) */
.km-search-toggle,
.km-wishlist-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--km-black);
    cursor: pointer;
    border-radius: var(--km-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--km-ease);
    text-decoration: none;
    padding: 0;
}
.km-search-toggle:hover,
.km-wishlist-btn:hover { color: var(--km-pink-dark); }
.km-search-toggle:focus-visible,
.km-wishlist-btn:focus-visible {
    outline: 2px solid var(--km-focus);
    outline-offset: 2px;
}

/* Wishlist count badge on header icon */
.km-wishlist-btn { position: relative; }
.km-wishlist-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--km-pink-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    pointer-events: none;
}

/* Product card — actions row (button + wishlist) */
.km-product-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 12px;
}
.km-product-card-actions .km-btn { flex: 1; }

/* TI Wishlist button in product card — circular overlay on product image (top-right) */
.km-product-card { position: relative; }
.km-product-card .km-product-card-actions { padding-right: 12px !important; }
.km-product-card .km-product-card-actions > .km-btn { margin: 0 !important; flex: 1 1 auto; }
.km-product-card .tinv-wraper {
    position: absolute !important;
    top: 12px;
    right: 12px;
    z-index: 5;
    line-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.km-product-card .tinv-wishlist-clear { display: none !important; }
.km-product-card .tinvwl_add_to_wishlist_button.tinvwl_add_to_wishlist_button {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: rgba(255,255,255,0.95) !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 18px 18px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    transition: background-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none !important;
    line-height: 0 !important;
    cursor: pointer;
    font-size: 0 !important;
    color: transparent !important;
    overflow: hidden;
    text-indent: -9999px;
}
.km-product-card .tinvwl_add_to_wishlist_button.tinvwl_add_to_wishlist_button::before,
.km-product-card .tinvwl_add_to_wishlist_button.tinvwl_add_to_wishlist_button::after {
    display: none !important;
    content: none !important;
}
.km-product-card .tinvwl_add_to_wishlist_button.tinvwl_add_to_wishlist_button:hover {
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239c1f5e' stroke='%239c1f5e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
}
.km-product-card .tinvwl-product-in-list .tinvwl_add_to_wishlist_button.tinvwl_add_to_wishlist_button,
.km-product-card .tinv-wraper.tinvwl-product-in-list .tinvwl_add_to_wishlist_button.tinvwl_add_to_wishlist_button {
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239c1f5e' stroke='%239c1f5e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
}
.km-product-card .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
.km-product-card .tinvwl_add_to_wishlist_button .tinvwl_remove_from_wishlist-text { display: none !important; }
.km-product-card .tinvwl-link span:not(.tinvwl-icon) { display: none !important; }
.km-product-card .tinvwl-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

/* Collapsible search panel — overlays below header on click */
.km-header-search--collapsible {
    position: absolute;
    top: calc(100% + 4px);
    right: 24px;
    width: 320px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: var(--km-shadow-lg);
    padding: 12px;
    border-radius: var(--km-radius-sm);
    z-index: 200;
    display: flex;
    align-items: center;
}
.km-header-search--collapsible[hidden] { display: none; }
.km-header-search--collapsible .km-search-input {
    flex: 1;
    width: 100%;
    padding: 9px 36px 9px 14px;
    border: 1.5px solid #c8c4c0;
    border-radius: var(--km-radius-pill);
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color var(--km-ease);
}
.km-header-search--collapsible .km-search-input:focus { border-color: var(--km-pink); }
.km-header-search--collapsible .km-search-btn {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--km-grey);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.km-header-search--collapsible .km-search-btn:hover { color: var(--km-pink-dark); }

/* Desktop overrides — Bloom editorial look */
@media (min-width: 1024px) {

    /* Header: drop bordered icon boxes, give more breathing room */
    .km-cart-btn,
    .km-account-btn {
        border: none;
        background: transparent;
        width: 44px;
        height: 44px;
    }
    .km-cart-btn:hover,
    .km-account-btn:hover {
        border-color: transparent;
        color: var(--km-pink-dark);
    }
    .km-header-actions { gap: 8px; }
    .km-header-inner { padding: 18px 40px; }

    /* Hero: contained editorial card */
    .km-hero {
        max-width: var(--km-max-width);
        margin: 24px auto 0;
        height: clamp(520px, 60vh, 640px);
        border-radius: 16px;
        overflow: hidden;
        background: var(--km-cream);
        align-items: flex-end;
    }
    .km-hero-overlay {
        background:
            linear-gradient(100deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 38%, transparent 65%),
            linear-gradient(180deg, transparent 48%, rgba(0,0,0,0.42) 100%);
    }
    .km-hero-content {
        padding: 0 60px 60px;
        align-self: flex-end;
        max-width: var(--km-max-width);
    }
    .km-hero-text-box { max-width: 720px; }
    .km-hero h1 {
        font-family: var(--km-font);
        font-weight: 800;
        font-size: clamp(56px, 6vw, 80px);
        letter-spacing: 4px;
        line-height: 1;
        margin-bottom: 18px;
        text-shadow: var(--km-hero-text-shadow);
    }
    .km-hero-sub {
        font-size: 17px;
        font-weight: 400;
        line-height: 1.5;
        max-width: 560px;
        margin-bottom: 0;
        text-shadow: var(--km-hero-text-shadow);
    }
    .km-hero-dots { bottom: 28px; }

    /* Section spacing breathe */
    .km-section {
        padding: 80px 0;
        box-shadow: none;
    }

    /* Section header: sans + optional pink underline */
    .km-section-header h2 {
        font-family: var(--km-font);
        font-weight: 600;
        font-size: 22px;
        letter-spacing: 0.5px;
    }
    .km-section-header--underline h2 {
        position: relative;
        padding-bottom: 8px;
    }
    .km-section-header--underline h2::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 36px;
        height: 2px;
        background: var(--km-pink);
    }
    .km-section-more {
        font-size: 13px;
        font-weight: 500;
        color: var(--km-grey);
        letter-spacing: 0.3px;
        transition: color var(--km-ease);
    }
    .km-section-more:hover { color: var(--km-pink-dark); }
    .km-section-more span {
        display: inline-block;
        margin-left: 4px;
        transition: transform var(--km-ease);
    }
    .km-section-more:hover span { transform: translateX(3px); }

    /* Product card: lighter, no inline CTA, image radius */
    .km-polecane .km-product-card {
        background: transparent;
        box-shadow: none;
        border-radius: 12px;
        text-align: left;
    }
    .km-polecane .km-product-card:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        transform: translateY(-2px);
    }
    .km-polecane .km-product-card-img {
        border-radius: 12px;
        aspect-ratio: 1/1;
    }
    .km-polecane .km-product-card-info {
        padding: 14px 4px 0;
    }
    .km-polecane .km-product-card-title {
        font-size: 14px;
        font-weight: 400;
        color: var(--km-black);
        line-height: 1.4;
        margin-bottom: 4px;
    }
    .km-polecane .km-product-card-price {
        font-size: 14px;
        font-weight: 600;
        color: var(--km-black);
    }
}

/* New badge — dark editorial pill */
.km-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(31, 31, 31, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Polecane carousel */
.km-carousel { position: relative; }
.km-carousel-viewport { overflow: hidden; }
.km-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: pan-y;
}
.km-carousel-track > .km-product-card {
    flex: 0 0 calc((100% - 80px) / 5);
    margin: 0;
}
.km-carousel-arrow {
    position: absolute;
    top: 38%;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--km-black);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--km-ease), opacity var(--km-ease), transform var(--km-ease);
    transform: translateY(-50%);
}
.km-carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}
.km-carousel-prev { left: -8px; }
.km-carousel-next { right: -8px; }
.km-carousel-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

/* Carousel responsive cards */
@media (max-width: 1279px) {
    .km-carousel-track > .km-product-card { flex: 0 0 calc((100% - 60px) / 4); }
}
@media (max-width: 991px) {
    .km-carousel-track > .km-product-card { flex: 0 0 calc((100% - 40px) / 3); }
    .km-carousel-arrow { width: 38px; height: 38px; }
    .km-carousel-prev { left: 0; }
    .km-carousel-next { right: 0; }
}
@media (max-width: 639px) {
    .km-carousel-track > .km-product-card { flex: 0 0 calc((100% - 20px) / 2); }
}

/* ==========================================================================
   MOBILE UI/UX AUDIT FIXES — 375 / 390 / 430 px
   Consolidated WCAG 2.5.5 (touch ≥44px) + iOS auto-zoom + overflow fixes.
   Scoped to mobile media queries; desktop layouts untouched.
   ========================================================================== */

/* ---------- ≤480 px — extreme phone fixes ---------- */
@media (max-width: 480px) {
    /* H1: prevent header action overflow at 375px — drop wishlist + search-toggle */
    .km-header-actions { gap: 6px; }
    .km-header-actions .km-wishlist-btn,
    .km-header-actions .km-search-toggle { display: none; }

    /* H2: collapsible search panel must not overflow viewport */
    .km-header-search--collapsible {
        left: 12px;
        right: 12px;
        width: auto;
    }

    /* H3: top bar — let long delivery text wrap to 2 lines on small phones */
    .km-top-bar {
        font-size: 11px;
        line-height: 1.4;
        max-height: none;
        padding: 8px 14px;
    }
}

/* ---------- ≤767 px — mobile-wide tap-target & legibility ---------- */
@media (max-width: 767px) {
    /* H4–H5: sidecart tap targets */
    .km-sidecart-qty input { height: 44px; min-height: 44px; }
    .km-sidecart-remove {
        top: 8px;
        right: -8px;
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* H6: hamburger explicit min size */
    .km-menu-toggle { min-width: 44px; min-height: 44px; }

    /* Footer link tap targets */
    .km-footer-links li a { display: block; padding: 8px 0; min-height: 44px; line-height: 1.4; }
    .km-footer-links { gap: 0; }

    /* P1: hero dots — keep 8px visual but expand hit area to 44px square */
    .km-hero-dot {
        width: 44px;
        height: 44px;
        padding: 18px 18px;
        background-clip: content-box;
        -webkit-background-clip: content-box;
        background-color: rgba(255,255,255,0.45);
    }
    .km-hero-dot.km-hero-active { background-color: #fff; }
    .km-hero-dots { gap: 0; bottom: 8px; }

    /* P2: carousel arrows — keep 44px tappable on phones, raise z-index */
    .km-carousel-arrow {
        width: 44px;
        height: 44px;
        z-index: 5;
    }
    .km-carousel-prev { left: 4px; }
    .km-carousel-next { right: 4px; }

    /* P3: heart-on-card tap target */
    .km-card-heart {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    /* P4: map iframe — half the desktop height to give viewport breathing room */
    .km-map-wrap iframe {
        height: 300px !important;
        min-height: 260px;
    }
    .km-map-wrap { min-height: 260px; }

    /* P5: hero CTA min-width — safer on 320px screens */
    .km-hero .km-btn { min-width: 180px; }

    /* P6 / CH1 / S4: kill iOS auto-zoom on focus by raising input font-size to 16px */
    .km-newsletter-form input[type="email"],
    .km-search-form input,
    .km-price-inputs input,
    .km-cart-coupon input,
    .woocommerce-checkout input.input-text,
    .woocommerce-checkout textarea,
    .woocommerce-checkout select,
    .km-product-add-to-cart .variations td select,
    .km-product-add-to-cart .quantity input.qty,
    .km-cart-qty input { font-size: 16px !important; }

    /* S1: sidebar toggle taller for thumb */
    .km-sidebar-toggle { padding: 14px 16px !important; min-height: 48px; }

    /* S2: filter pills */
    .km-pill,
    a.km-pill {
        min-height: 44px !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
    }

    /* S5: pagination */
    .km-shop-products nav.woocommerce-pagination ul li a,
    .km-shop-products nav.woocommerce-pagination ul li span {
        padding: 12px 16px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* PR4: gallery thumbs — scroll-snap so each thumb lands cleanly */
    .km-gallery-thumbs {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }
    .km-gallery-thumb { scroll-snap-align: start; }
}

/* ---------- ≤991 px — sidebar mobile chip relax ---------- */
@media (max-width: 991px) {
    /* S3: shop sidebar category chips — restore comfortable size */
    .km-shop-sidebar .km-cat-link {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 40px;
    }
}

/* ==========================================================================
   DESKTOP UI/UX AUDIT FIXES — scoped ≥1024px (mobile untouched)
   Conversion + accessibility pass: hero CTA, contrast, font sizes.
   ========================================================================== */


@media (min-width: 1024px) {

    /* 1.A Top announcement bar: 13px → 15px for desktop legibility */
    .km-top-bar {
        font-size: 15px;
        font-weight: 500;
        padding: 12px 20px;
        letter-spacing: 0.3px;
    }

    /* Hero overlay: 3-layer scrim — diagonal anchor + bottom fade + solid text-zone */
    .km-hero-overlay {
        background:
            linear-gradient(115deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.32) 35%, rgba(0,0,0,0.05) 62%, transparent 78%),
            linear-gradient(180deg, transparent 0%, transparent 48%, rgba(0,0,0,0.75) 100%);
    }

    /* Hero subtitle: heavier weight + shared shadow token for contrast on light flowers */
    .km-hero-sub {
        font-weight: 600;
        text-shadow: var(--km-hero-text-shadow);
    }

    /* Push bg image to frame faces top-quarter, text sits in bottom zone */
    .km-hero img.km-hero-bg-img {
        object-position: center top;
    }

    /* 1.C Hero CTA: solid black primary button below the subtitle */
    .km-hero-actions {
        display: flex;
        gap: 16px;
        margin-top: 26px;
        margin-bottom: 0;
    }
    .km-hero-cta {
        padding: 15px 36px;
        font-size: 13px;
        letter-spacing: 1.8px;
        box-shadow: 0 6px 22px rgba(0,0,0,0.22);
    }
    .km-hero-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0,0,0,0.28);
    }

    /* 2 Categories: convert single-row scroll into 2×4 grid.
       Larger thumbnails + larger labels. Crops centered on the
       bouquet via the existing background-position:center on
       .km-cat-story-img, so no PHP changes required. */
    .km-cat-stories {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 28px 32px;
        overflow: visible;
        padding: 0;
    }
    .km-cat-story {
        width: 100%;
        align-items: center;
        gap: 14px;
    }
    .km-cat-story-img {
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 18px;
    }
    .km-cat-story-name {
        font-size: 15px;
        font-weight: 700;
        max-width: 240px;
        letter-spacing: 0.2px;
        color: var(--km-black);
    }

    /* 3 Polecane carousel cards: WCAG-AA contrast for title + price.
       Title was weight 400 (faint); price was weight 600 in pink.
       Make both var(--km-black) at higher weights — 9.6:1 vs white. */
    .km-polecane .km-product-card-title {
        font-size: 15px;
        font-weight: 500;
        color: #1f1f1f;
    }
    .km-polecane .km-product-card-price,
    .km-polecane .km-product-card-price ins,
    .km-polecane .km-product-card-price .amount {
        font-size: 15px;
        font-weight: 700;
        color: #1f1f1f;
    }
    .km-polecane .km-product-card-price del .amount {
        color: #6b6b6b;
        font-weight: 400;
    }

    /* 5 Newsletter "Wyślij" — pink-on-pink fails contrast.
       Switch to dark charcoal with white text. */
    .km-newsletter-form .km-btn,
    .km-newsletter-form .km-btn-pink {
        background-color: #1f1f1f !important;
        color: #ffffff !important;
        border: 1.5px solid #1f1f1f !important;
    }
    .km-newsletter-form .km-btn:hover,
    .km-newsletter-form .km-btn-pink:hover {
        background-color: #000000 !important;
        border-color: #000000 !important;
    }
    .km-newsletter-form .km-btn:focus-visible {
        outline: 3px solid #ffffff;
        outline-offset: 2px;
    }

    /* 5 FAQ question text: 15px → 17px, looser line-height */
    .km-faq-q {
        font-size: 17px;
        line-height: 1.5;
        padding: 20px 0;
    }
    .km-faq-a {
        font-size: 15px;
        color: #2d2d2d;
    }

}

/* H3: header tier height — recover ~20 px on mobile */
@media (max-width: 767px) {
    .km-mob-utility { min-height: 44px; }
    .km-header-inner { padding: 8px 16px; min-height: 60px; }
}

/* ════════════════════════════════════════════════════════════════════
   Wishlist page (/ulubione/) — full theme styling for TI Wishlist
   ════════════════════════════════════════════════════════════════════ */
.page-id-3678 .entry-content { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Page intro — emotional context under the H1 */
.km-wishlist-intro {
    text-align: center;
    font-style: italic;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.5;
    color: var(--km-grey);
    margin: -8px 0 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* Wishlist container */
.tinv-wishlist.woocommerce { font-family: var(--km-font); }
.tinv-wishlist .tinv-header { display: none; }

/* Table */
.tinv-wishlist .tinvwl-table-manage-list {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.tinv-wishlist .tinvwl-table-manage-list thead th {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ececec !important;
    padding: 14px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--km-grey) !important;
    text-align: left;
}
.tinv-wishlist .tinvwl-table-manage-list tbody td {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #f4f1ee !important;
    padding: 22px 12px !important;
    vertical-align: middle !important;
}

/* Hide unwanted columns (date, stock, action) */
.tinv-wishlist .tinvwl-table-manage-list th.product-date,
.tinv-wishlist .tinvwl-table-manage-list td.product-date,
.tinv-wishlist .tinvwl-table-manage-list th.product-stock,
.tinv-wishlist .tinvwl-table-manage-list td.product-stock { display: none !important; }

/* Checkbox column — slimmer, theme-pink accent */
.tinv-wishlist .tinvwl-table-manage-list th.product-cb,
.tinv-wishlist .tinvwl-table-manage-list td.product-cb {
    width: 36px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.tinv-wishlist .input-checkbox { accent-color: var(--km-pink-dark); width: 18px; height: 18px; cursor: pointer; }

/* Remove button → modern trash SVG */
.tinv-wishlist .tinvwl-table-manage-list th.product-remove,
.tinv-wishlist .tinvwl-table-manage-list td.product-remove {
    width: 44px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center;
}
.tinv-wishlist td.product-remove button[name="tinvwl-remove"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    color: var(--km-grey) !important;
    font-size: 0 !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m3 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14z'/%3E%3Cline x1='10' y1='11' x2='10' y2='17'/%3E%3Cline x1='14' y1='11' x2='14' y2='17'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 18px 18px !important;
}
.tinv-wishlist td.product-remove button[name="tinvwl-remove"] i { display: none !important; }
.tinv-wishlist td.product-remove button[name="tinvwl-remove"]:hover {
    background-color: #fdf3f6 !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c1f5e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m3 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14z'/%3E%3Cline x1='10' y1='11' x2='10' y2='17'/%3E%3Cline x1='14' y1='11' x2='14' y2='17'/%3E%3C/svg%3E") !important;
}

/* Thumbnail */
.tinv-wishlist td.product-thumbnail { width: 110px !important; }
.tinv-wishlist td.product-thumbnail img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Product name — consistent typography */
.tinv-wishlist td.product-name a,
.tinv-wishlist td.product-name a:visited {
    font-size: 16px;
    font-weight: 500;
    color: var(--km-black) !important;
    text-decoration: none !important;
    transition: color .2s;
}
.tinv-wishlist td.product-name a:hover { color: var(--km-pink-dark) !important; }
.tinv-wishlist td.product-name .variation { color: var(--km-grey); font-size: 13px; margin-top: 6px; }
.tinv-wishlist td.product-name .variation dt,
.tinv-wishlist td.product-name .variation dd { display: inline; margin: 0 4px 0 0; padding: 0; font-weight: 400; }

/* Price */
.tinv-wishlist td.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--km-black) !important;
    white-space: nowrap;
}
.tinv-wishlist td.product-price del { color: #bbb; font-weight: 400; margin-right: 6px; }
.tinv-wishlist td.product-price ins { text-decoration: none; }

/* Add-to-cart button in row → primary theme button */
.tinv-wishlist .tinvwl-table-manage-list .product-action,
.tinv-wishlist .tinvwl-table-manage-list .tinvwl-buttons-group {
    text-align: right;
}
.tinv-wishlist td.product-action a.button,
.tinv-wishlist td.product-action button.button,
.tinv-wishlist .tinvwl-table-manage-list .product-action .button,
.tinv-wishlist a.button.alt[href*="add-to-cart"],
.tinv-wishlist button[name="add-to-cart"],
.tinv-wishlist .button.product_type_simple,
.tinv-wishlist .button.product_type_variable {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 26px !important;
    background: var(--km-pink-dark) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--km-font) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .2s !important;
    cursor: pointer;
    min-height: 44px;
    line-height: 1 !important;
}
.tinv-wishlist td.product-action a.button:hover,
.tinv-wishlist td.product-action button.button:hover,
.tinv-wishlist a.button.alt[href*="add-to-cart"]:hover,
.tinv-wishlist button[name="add-to-cart"]:hover,
.tinv-wishlist .button.product_type_simple:hover,
.tinv-wishlist .button.product_type_variable:hover {
    background: #7e1a4c !important;
    color: #fff !important;
}

/* Stock label (if shown — we hide column but for safety) */
.tinv-wishlist .stock { color: var(--km-grey); font-size: 13px; font-weight: 500; }
.tinv-wishlist .stock.in-stock { color: #2a8a4f; }

/* Bulk actions footer — clean two-button layout */
.tinv-wishlist .tinvwl-buttons-group {
    margin-top: 28px !important;
    padding-top: 20px !important;
    border-top: 1px solid #ececec !important;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}
.tinv-wishlist .tinvwl-buttons-group select.tinvwl-action,
.tinv-wishlist .tinvwl-buttons-group button[name="tinvwl-action-apply"],
.tinv-wishlist .tinvwl-buttons-group button.button[name="tinvwl-action-apply"] { display: none !important; }
.tinv-wishlist .tinvwl-buttons-group button[name="tinvwl-action-add_to_cart"],
.tinv-wishlist .tinvwl-buttons-group button[name="tinvwl-action-add_all_to_cart"],
.tinv-wishlist .tinvwl-buttons-group button.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 24px !important;
    background: #fff !important;
    color: var(--km-black) !important;
    border: 1.5px solid var(--km-grey-light) !important;
    border-radius: 0 !important;
    font-family: var(--km-font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer;
    transition: all .2s;
    min-height: 44px;
    line-height: 1 !important;
    box-shadow: none !important;
}
.tinv-wishlist .tinvwl-buttons-group button[name="tinvwl-action-add_all_to_cart"] {
    background: var(--km-pink-dark) !important;
    color: #fff !important;
    border-color: var(--km-pink-dark) !important;
}
.tinv-wishlist .tinvwl-buttons-group button[name="tinvwl-action-add_to_cart"]:hover {
    background: var(--km-cream) !important;
    border-color: var(--km-pink-dark) !important;
    color: var(--km-pink-dark) !important;
}
.tinv-wishlist .tinvwl-buttons-group button[name="tinvwl-action-add_all_to_cart"]:hover {
    background: #7e1a4c !important;
    border-color: #7e1a4c !important;
}

/* Social share — subtle, secondary */
.tinv-wishlist .social-buttons {
    margin-top: 32px !important;
    padding-top: 20px !important;
    border-top: 1px solid #ececec !important;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.tinv-wishlist .social-buttons li:first-child {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--km-grey);
    font-weight: 600;
}
.tinv-wishlist .social-buttons ul { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; align-items: center; }
.tinv-wishlist .social-buttons a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--km-cream);
    color: var(--km-grey);
    transition: background .2s, color .2s;
}
.tinv-wishlist .social-buttons a:hover { background: var(--km-pink-dark); color: #fff; }

/* Empty state */
.tinv-wishlist .wishlist-empty {
    text-align: center;
    padding: 48px 20px;
    font-size: 16px;
    color: var(--km-grey);
}

/* Mobile */
@media (max-width: 768px) {
    .km-wishlist-intro { font-size: 15px; margin-bottom: 24px; }
    .tinv-wishlist .tinvwl-table-manage-list { display: block; }
    .tinv-wishlist .tinvwl-table-manage-list thead { display: none; }
    .tinv-wishlist .tinvwl-table-manage-list tbody,
    .tinv-wishlist .tinvwl-table-manage-list tr { display: block; }
    .tinv-wishlist .tinvwl-table-manage-list tr.wishlist_item {
        position: relative;
        padding: 16px 0 16px 110px;
        min-height: 110px;
        border-bottom: 1px solid #f0ece8;
    }
    .tinv-wishlist .tinvwl-table-manage-list tr.wishlist_item td {
        display: block;
        border: none !important;
        padding: 4px 0 !important;
        text-align: left !important;
    }
    .tinv-wishlist .tinvwl-table-manage-list td.product-cb { position: absolute; top: 16px; right: 8px; width: auto !important; }
    .tinv-wishlist .tinvwl-table-manage-list td.product-remove { position: absolute; top: 50px; right: 0; width: auto !important; }
    .tinv-wishlist .tinvwl-table-manage-list td.product-thumbnail { position: absolute; top: 16px; left: 0; width: 90px !important; }
    .tinv-wishlist .tinvwl-table-manage-list td.product-action { padding-top: 12px !important; }
    .tinv-wishlist .tinvwl-buttons-group { flex-direction: column; align-items: stretch; }
    .tinv-wishlist .tinvwl-buttons-group button { width: 100%; }
}
