/* =========================================================================
   KineticUltra — Kinetic Command : Catalog / Shop page
   Stitch reference: .stitch/designs/02-catalog.html
   ========================================================================= */

.k-catalog {
    padding: 7rem 1.5rem 5rem;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

/* Quadrillage cyan ambiant — porté depuis `.k-404-hero__grid`
 * (cf. `assets/css/kinetic-404.css`). Deux linear-gradients
 * cyan à 5% d'opacité tracent une grille 40×40, masquée en
 * diagonale (135°, opaque → transparent à 80%) pour rester
 * subtile sans concurrencer les cartes produit.
 * `pointer-events: none` + `z-index: -1` + `isolation: isolate`
 * sur `.k-catalog` : la grille vit en arrière-plan dans son
 * propre stacking context, sans bloquer les clics ni interférer
 * avec les popovers de filtres ailleurs dans la page. */
.k-catalog::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(135deg, #000 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 80%);
}

/* Breadcrumb */
.k-catalog__crumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--k-muted);
}
.k-catalog__crumbs a {
    color: var(--k-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.k-catalog__crumbs a:hover { color: var(--k-text); }
.k-catalog__crumbs svg { width: 12px; height: 12px; opacity: 0.6; }
.k-catalog__crumbs .k-catalog__crumb-current { color: var(--k-cyan); }

/* Hero panel */
.k-catalog__hero {
    margin-bottom: 2.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(var(--k-glass-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--k-hairline);
    border-left: 4px solid var(--k-cyan);
    border-radius: 10px;
}
@media (min-width: 768px) {
    .k-catalog__hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.k-catalog__hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--k-text);
    margin: 0 0 0.5rem;
    line-height: 1.1;
}
.k-catalog__hero-desc {
    color: var(--k-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 36rem;
    margin: 0;
}
.k-catalog__hero-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--k-hairline);
    border-radius: 12px;
}
html[data-theme="light"] .k-catalog__hero-count {
    background: rgba(14, 14, 19, 0.04);
}
.k-catalog__hero-count-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.875rem;
    color: var(--k-cyan);
    line-height: 1;
}
.k-catalog__hero-count-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--k-muted);
    margin-top: 0.35rem;
}

/* Flash Sale browsing context (?flash_sale=1) — hero festif (accent violet) */
.k-catalog__hero--flash {
    --kflash-glow: rgba(123, 97, 255, 0.16);
    --kflash-badge-fg: #0a0a0f;
    position: relative;
    overflow: hidden;
    border-left-color: var(--k-violet);
}
html[data-theme="light"] .k-catalog__hero--flash {
    --kflash-glow: rgba(123, 97, 255, 0.1);
}
.k-catalog__hero--flash::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(120% 160% at 100% 0%, var(--kflash-glow), transparent 60%);
}
.k-catalog__hero--flash > * {
    position: relative;
    z-index: 1;
}
.k-catalog__flash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--k-violet), var(--k-cyan));
    color: var(--kflash-badge-fg);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.k-catalog__flash-badge-bolt {
    font-size: 0.95em;
    line-height: 1;
}
.k-catalog__flash-countdown {
    margin-top: 0.9rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--k-violet);
}

/* Layout grid */
.k-catalog__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .k-catalog__layout {
        grid-template-columns: 300px 1fr;
    }

    /* Sidebar on the right — swap column order */
    .k-catalog__layout--sidebar-right {
        grid-template-columns: 1fr 300px;
    }
    .k-catalog__layout--sidebar-right .k-catalog__sidebar-col {
        order: 2;
    }
    .k-catalog__layout--sidebar-right > section {
        order: 1;
    }

    /* No sidebar — single full-width column */
    .k-catalog__layout--no-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Sidebar column wrapper (filters + widget area) */
.k-catalog__sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Widget area in catalog sidebar */
.k-catalog-widget-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.k-catalog-widget {
    background: #19191f;
    border-radius: 12px;
    padding: 1.25rem;
}
html[data-theme="light"] .k-catalog-widget {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(14,14,19,.06);
}

.k-catalog-widget__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--k-muted);
    margin: 0 0 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--k-hairline);
}

/* ---- Sidebar filters ---- */
.k-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.k-filters__panel {
    padding: 1.5rem;
    background: rgba(var(--k-glass-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--k-hairline);
    border-radius: 10px;
}
.k-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--k-hairline);
}
.k-filters__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--k-text);
    margin: 0;
}
.k-filters__title svg { width: 14px; height: 14px; color: var(--k-cyan); }
.k-filters__reset {
    background: none;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--k-violet);
    cursor: pointer;
    transition: color 0.2s ease;
}
.k-filters__reset:hover { color: var(--k-text); }

.k-filters__group { margin-bottom: 2rem; }
.k-filters__group:last-child { margin-bottom: 0; }

/* Dynamic-groups wrapper sits between the static groups and .k-filters__toggle.
   Its inner :last-child group has margin-bottom 0, so we restore the 2rem rhythm
   on the wrapper itself — but only when it actually holds content. */
.k-filters__dynamic-groups:not(:empty) { margin-bottom: 2rem; }
.k-filters__label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--k-muted);
    margin-bottom: 1rem;
}

/* Collapsible group toggle (accordion header) */
.k-filters__group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 200ms ease;
}
.k-filters__group-toggle:hover { color: var(--k-text); }
.k-filters__group-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.35);
    border-radius: 4px;
}
.k-filters__group-toggle .k-filters__label {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.k-filters__chevron {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    color: var(--k-muted);
    transition: transform 200ms ease, color 200ms ease;
}
.k-filters__group-toggle:hover .k-filters__chevron { color: var(--k-cyan); }
.k-filters__group-toggle[aria-expanded="false"] .k-filters__chevron {
    transform: rotate(-90deg);
}
.k-filters__group-body { transition: opacity 160ms ease; }
.k-filters__group-body[hidden] { display: none; }
.k-filters__group-toggle[aria-expanded="false"] + .k-filters__group-body { display: none; }

/* Price range */
.k-filters__price { padding: 0 0.5rem; }
.k-filters__price-track {
    position: relative;
    height: 4px;
    background: var(--k-hairline);
    border-radius: 999px;
}
.k-filters__price-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--k-cyan), var(--k-violet));
    border-radius: 999px;
}
.k-filters__price-thumb {
    position: absolute;
    top: -6px;
    width: 16px;
    height: 16px;
    transform: rotate(45deg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.k-filters__price-thumb--min {
    background: var(--k-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.k-filters__price-thumb--max {
    background: var(--k-violet);
    box-shadow: 0 0 10px rgba(123, 97, 255, 0.5);
}
.k-filters__price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    font-weight: 700;
}
.k-filters__price-values input {
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    width: 5rem;
    padding: 0;
    outline: none;
}
.k-filters__price-values .min { color: var(--k-cyan); }
.k-filters__price-values .max { color: var(--k-violet); text-align: right; }

/* Checkbox list */
.k-filters__check-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.k-filters__check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--k-hairline);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
html[data-theme="light"] .k-filters__check { background: rgba(14, 14, 19, 0.035); }
.k-filters__check:hover { border-color: rgba(0, 212, 255, 0.4); }

/* Categories group — only rendered on /shop (no specific cat). Each item is
   a navigation link, not a checkbox. Visual rhythm matches .k-filters__check
   (same padding/radius/bg) but signals "click to drill down" via a chevron
   that appears on hover and a subtle cyan tint. */
.k-filters__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.k-filters__cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--k-hairline);
    color: var(--k-text);
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 200ms, border-color 200ms, color 200ms, transform 120ms;
}
html[data-theme="light"] .k-filters__cat-link {
    background: rgba(14, 14, 19, 0.035);
}
.k-filters__cat-link::after {
    content: "→";
    color: var(--k-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 160ms, transform 160ms, color 160ms;
}
.k-filters__cat-link:hover,
.k-filters__cat-link:focus-visible {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--k-cyan);
    outline: none;
}
.k-filters__cat-link:hover::after,
.k-filters__cat-link:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--k-cyan);
}
.k-filters__cat-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.k-filters__cat-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--k-muted);
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--k-hairline);
    transition: background 200ms, color 200ms;
}
.k-filters__cat-link:hover .k-filters__cat-count,
.k-filters__cat-link:focus-visible .k-filters__cat-count {
    background: rgba(0, 212, 255, 0.15);
    color: var(--k-cyan);
}
.k-filters__check-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.k-filters__check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid var(--k-hairline);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.k-filters__check input[type="checkbox"]:checked {
    background: var(--k-cyan);
    border-color: var(--k-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.k-filters__check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    inset: 2px;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%230A0A0F' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}
.k-filters__check-label {
    font-size: 0.875rem;
    color: var(--k-text);
    opacity: 0.8;
}
.k-filters__check:hover .k-filters__check-label { opacity: 1; }
.k-filters__check-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--k-cyan);
    opacity: 0.6;
}

/* Attribute chip buttons */
.k-filters__chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.k-filters__chip {
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--k-hairline);
    color: var(--k-muted);
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
html[data-theme="light"] .k-filters__chip { background: rgba(14, 14, 19, 0.035); }
.k-filters__chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.k-filters__chip--active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--k-cyan);
    color: var(--k-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* Stock toggle */
.k-filters__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
}
.k-filters__toggle-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--k-green);
}
.k-filters__toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 999px;
    cursor: pointer;
}
.k-filters__toggle input { display: none; }
.k-filters__toggle-knob {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--k-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    transition: transform 0.2s ease;
}
.k-filters__toggle input:not(:checked) + .k-filters__toggle-switch .k-filters__toggle-knob {
    transform: translateX(-20px);
    opacity: 0.4;
}

/* Configurator CTA card */
.k-filters__cta {
    position: relative;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--k-hairline);
    background: linear-gradient(135deg, var(--k-surface) 0%, #000 100%);
    overflow: hidden;
}
html[data-theme="light"] .k-filters__cta {
    background: linear-gradient(135deg, var(--k-surface) 0%, var(--k-surface-2) 100%);
}
.k-filters__cta-icon {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    opacity: 0.1;
    pointer-events: none;
}
.k-filters__cta-icon svg { width: 120px; height: 120px; color: var(--k-cyan); }
.k-filters__cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--k-text);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    position: relative;
}
.k-filters__cta-title span { color: var(--k-cyan); }
.k-filters__cta-desc {
    font-size: 11px;
    color: var(--k-muted);
    margin: 0 0 1rem;
    position: relative;
}
.k-filters__cta-btn {
    background: none;
    border: none;
    color: var(--k-cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    text-decoration: none;
}
.k-filters__cta-btn svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.k-filters__cta-btn:hover svg { transform: translateX(3px); }

/* ---- Toolbar ---- */
.k-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(var(--k-glass-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--k-hairline);
    border-radius: 12px;
}
@media (min-width: 640px) {
    .k-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.k-toolbar__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.k-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.k-toolbar__sort-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    color: var(--k-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.k-toolbar__sort select {
    background: transparent;
    border: none;
    color: var(--k-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    cursor: pointer;
    outline: none;
    padding: 0.25rem 0;
}
.k-toolbar__sort select option {
    background: var(--k-surface);
    color: var(--k-text);
}
.k-toolbar__results {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    color: var(--k-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.k-toolbar__views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--k-hairline);
    border-radius: 8px;
}
html[data-theme="light"] .k-toolbar__views { background: rgba(14, 14, 19, 0.04); }
.k-toolbar__view-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--k-muted);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.k-toolbar__view-btn svg { width: 18px; height: 18px; }
.k-toolbar__view-btn:hover { color: var(--k-text); }
.k-toolbar__view-btn--active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--k-cyan);
}

/* ---- Product loop containers ---- */
.k-products {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}
.k-products--grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.k-products--list { grid-template-columns: 1fr; }
.k-products > li { list-style: none; }

/* ---- List-view product card ---- */
.k-prod-list {
    display: flex;
    flex-direction: column;
    background: rgba(var(--k-glass-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--k-hairline);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.k-prod-list:hover { border-color: rgba(0, 212, 255, 0.4); }
@media (min-width: 768px) {
    .k-prod-list { flex-direction: row; }
}
.k-prod-list__media {
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid var(--k-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
html[data-theme="light"] .k-prod-list__media { background: rgba(14, 14, 19, 0.04); }
@media (min-width: 768px) {
    .k-prod-list__media { width: 16rem; }
}
.k-prod-list__media img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.k-prod-list:hover .k-prod-list__media img { transform: scale(1.08); }
.k-prod-list__media img.woocommerce-placeholder {
    max-width: 60%;
    opacity: 0.15;
    filter: invert(1) grayscale(1);
    mix-blend-mode: luminosity;
}

.k-prod-list__sticker {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    padding: 0.25rem 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--k-cyan);
    color: var(--k-background);
}
.k-prod-list__sticker--sale { background: var(--k-danger); color: #fff; }
.k-prod-list__sticker--new { background: var(--k-cyan); color: var(--k-background); }

.k-prod-list__body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.k-prod-list__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.k-prod-list__brand {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--k-violet);
    margin-bottom: 0.25rem;
}
.k-prod-list__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--k-text);
    margin: 0;
    line-height: 1.2;
    transition: color 0.2s ease;
}
.k-prod-list__title a { color: inherit; text-decoration: none; }
.k-prod-list:hover .k-prod-list__title { color: var(--k-cyan); }

.k-prod-list__price {
    text-align: right;
    flex-shrink: 0;
}
.k-prod-list__price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--k-text);
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.25rem;
}
.k-prod-list__price-amount .amount {
    color: inherit;
    display: inline-block;
    white-space: nowrap;
}
.k-prod-list__price-amount .woocommerce-Price-currencySymbol {
    margin-left: -0.25em;
    font-weight: inherit;
}
.k-prod-list__price-amount .screen-reader-text { display: none; }
.k-prod-list__price-amount del {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--k-muted);
    text-decoration: line-through;
    letter-spacing: 0;
}
.k-prod-list__price-amount ins {
    display: block;
    text-decoration: none;
    color: var(--k-cyan);
}
.k-prod-list__price--sale .k-prod-list__price-amount { color: var(--k-cyan); }
.k-prod-list__price-was {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    color: var(--k-muted);
    text-decoration: line-through;
    margin-top: 0.25rem;
}
.k-prod-list__price-meta {
    display: block;
    font-family: monospace;
    font-size: 10px;
    color: var(--k-muted);
    margin-top: 0.25rem;
}

.k-prod-list__specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--k-hairline);
    border-bottom: 1px solid var(--k-hairline);
}
.k-prod-list__spec-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--k-muted);
    margin: 0 0 0.25rem;
    letter-spacing: 0.1em;
}
.k-prod-list__spec-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--k-text);
    margin: 0;
}

.k-prod-list__foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
@media (min-width: 640px) {
    .k-prod-list__foot {
        flex-direction: row;
        align-items: center;
    }
}
.k-prod-list__stock {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
.k-prod-list__stock-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}
.k-prod-list__stock-hint { color: var(--k-muted); }
.k-prod-list__stock--optimal  .k-prod-list__stock-head { color: var(--k-green); }
.k-prod-list__stock--moderate .k-prod-list__stock-head { color: var(--k-violet); }
.k-prod-list__stock--critical .k-prod-list__stock-head { color: var(--k-danger); }
.k-prod-list__stock--out      .k-prod-list__stock-head { color: var(--k-muted); }

.k-prod-list__stock-segments {
    display: flex;
    gap: 0.25rem;
    height: 6px;
}
.k-prod-list__stock-seg {
    flex: 1;
    border-radius: 9999px;
    background: rgba(var(--k-on-surface-rgb, 232, 232, 237), 0.1);
}
.k-prod-list__stock--optimal  .k-prod-list__stock-seg.is-filled {
    background: var(--k-green);
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}
.k-prod-list__stock--moderate .k-prod-list__stock-seg.is-filled {
    background: var(--k-violet);
}
.k-prod-list__stock--critical .k-prod-list__stock-seg.is-filled {
    background: var(--k-danger);
    box-shadow: 0 0 8px rgba(255, 59, 92, 0.4);
}

html[data-theme="light"] .k-prod-list__stock-seg {
    background: rgba(14, 14, 19, 0.08);
}
html[data-theme="light"] .k-prod-list__stock--optimal  .k-prod-list__stock-head { color: #009A5A; }
html[data-theme="light"] .k-prod-list__stock--moderate .k-prod-list__stock-head { color: #5A45D0; }
html[data-theme="light"] .k-prod-list__stock--critical .k-prod-list__stock-head { color: #D91E3F; }
html[data-theme="light"] .k-prod-list__stock--optimal  .k-prod-list__stock-seg.is-filled { background: #00C07A; box-shadow: none; }
html[data-theme="light"] .k-prod-list__stock--moderate .k-prod-list__stock-seg.is-filled { background: #7B61FF; }
html[data-theme="light"] .k-prod-list__stock--critical .k-prod-list__stock-seg.is-filled { background: #D91E3F; box-shadow: none; }

.k-prod-list__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
}
.k-prod-list .k-prod-list__fav {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--k-hairline);
    background: transparent;
    color: var(--k-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1;
    flex-shrink: 0;
}
.k-prod-list__fav svg { width: 18px; height: 18px; }
.k-prod-list .k-prod-list__fav:hover {
    color: var(--k-cyan);
    border-color: rgba(0, 212, 255, 0.35);
}
.k-prod-list .k-prod-list__fav.is-saved {
    color: var(--k-cyan);
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.06);
}
.k-prod-list .k-prod-list__fav.is-saved svg {
    fill: var(--k-cyan);
}
.k-prod-list .k-prod-list__buy,
.k-prod-list .k-prod-list__buy.add_to_cart_button {
    margin: 0;
    padding: 0 1.5rem;
    height: 44px;
    width: auto;
    background: var(--k-cyan);
    border: none;
    border-radius: 8px;
    color: var(--k-background);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: box-shadow 0.2s ease;
    box-sizing: border-box;
    line-height: 1;
    flex-shrink: 0;
    transform: none;
}
.k-prod-list .k-prod-list__buy:hover,
.k-prod-list .k-prod-list__buy.add_to_cart_button:hover {
    background: var(--k-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    transform: none;
}
.k-prod-list__buy svg { width: 14px; height: 14px; }
.k-prod-list__buy:hover { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.k-prod-list__buy[disabled] {
    background: var(--k-surface-2);
    color: var(--k-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.k-prod-list .k-prod-list__compare {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--k-hairline);
    background: transparent;
    color: var(--k-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}
.k-prod-list__compare svg { width: 16px; height: 16px; }
.k-prod-list .k-prod-list__compare:hover {
    color: var(--k-cyan);
    border-color: rgba(0,212,255,0.4);
    background: rgba(0,212,255,0.06);
}
.k-prod-list .k-prod-list__compare.is-active {
    background: var(--k-cyan);
    border-color: var(--k-cyan);
    color: #0a0a0f;
    box-shadow: 0 0 12px rgba(0,212,255,0.3);
}

/* ============================================================
   Catalog Pagination — Kinetic Ultra style
   ============================================================ */
.k-cat-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Nav wrapper: flex row, centered */
.k-cat-pagination .woocommerce-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* ul.page-numbers — reset WooCommerce woocommerce.css (0,2,2):
   border:1px solid #cfc8d8; border-right:0; margin:1px; white-space:nowrap */
.k-cat-pagination ul.page-numbers {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    align-items: center;
    gap: 6px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: normal !important;
}

/* li — beat WooCommerce (0,2,3): float:left; display:inline; overflow:hidden; border-right */
body.woocommerce-page .k-cat-pagination ul.page-numbers li,
body.woocommerce-archive .k-cat-pagination ul.page-numbers li {
    display: flex !important;
    align-items: center;
    float: none !important;
    overflow: visible !important;
    border-right: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---- Page number buttons ----
   WooCommerce woocommerce.css targets li a/span with (0,2,4):
   display:block; padding:.5em; min-width:1em — must use !important on those. */
.k-cat-pagination a.page-numbers,
.k-cat-pagination span.page-numbers {
    width: 40px !important;
    height: 40px !important;
    min-width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 8px;
    background: var(--k-surface-2, #19191f);
    color: var(--k-muted, #8B8B9E);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem !important;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1 !important;
    text-decoration: none !important;
    border: 1px solid rgba(232, 232, 237, 0.07) !important;
    transition: color 0.18s ease, background 0.18s ease,
                border-color 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

/* Hover: cyan underglow */
.k-cat-pagination a.page-numbers:hover {
    color: var(--k-cyan, #00D4FF);
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
    text-decoration: none;
}

/* Current page: solid cyan fill */
.k-cat-pagination span.page-numbers.current {
    background: var(--k-cyan, #00D4FF) !important;
    color: #0A0A0F !important;
    font-weight: 700;
    border-color: var(--k-cyan, #00D4FF) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}

/* Dots / ellipsis */
.k-cat-pagination a.page-numbers.dots,
.k-cat-pagination span.page-numbers.dots {
    background: transparent !important;
    border-color: transparent !important;
    width: auto;
    padding: 0 4px;
    color: var(--k-muted, #8B8B9E);
    box-shadow: none !important;
    cursor: default;
}

/* Prev / Next arrows */
.k-cat-pagination a.prev.page-numbers,
.k-cat-pagination a.next.page-numbers {
    font-size: 1.1rem;
    color: var(--k-muted, #8B8B9E);
}
.k-cat-pagination a.prev.page-numbers:hover,
.k-cat-pagination a.next.page-numbers:hover {
    color: var(--k-cyan, #00D4FF);
}

/* Light mode adjustments */
html[data-theme="light"] .k-cat-pagination a.page-numbers,
html[data-theme="light"] .k-cat-pagination span.page-numbers {
    background: var(--k-surface-2, #ECECF1);
    border-color: rgba(14, 14, 19, 0.08);
    color: var(--k-muted, #585863);
}
html[data-theme="light"] .k-cat-pagination a.page-numbers:hover {
    background: rgba(0, 122, 153, 0.08);
    border-color: rgba(0, 122, 153, 0.25);
    color: var(--k-cyan, #007A99);
    box-shadow: 0 0 14px rgba(0, 122, 153, 0.12);
}
html[data-theme="light"] .k-cat-pagination span.page-numbers.current {
    background: var(--k-cyan, #007A99) !important;
    color: #fff !important;
    border-color: var(--k-cyan, #007A99) !important;
    box-shadow: 0 0 16px rgba(0, 122, 153, 0.3);
}

/* Empty state */
.k-catalog__empty {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(var(--k-glass-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--k-hairline);
    border-radius: 10px;
}
.k-catalog__empty-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--k-text);
    margin: 0 0 0.5rem;
}
.k-catalog__empty-desc { color: var(--k-muted); font-size: 0.875rem; }

/* ── Skeleton loader ──────────────────────────────────────────────── */
.k-catalog__skeleton { display: block; }
.k-catalog__skeleton.hidden { display: none; }

@keyframes k-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

/*
 * Dark mode shimmer: card bg #19191f, shimmer sweeps to #2c2b33 (+14 L).
 * Light mode shimmer: card bg #ececf1, shimmer sweeps to #d4d4da (-12 L).
 * Both modes use hardcoded values — no CSS variable aliases that may not exist.
 */
.k-shimmer {
    background: linear-gradient(
        90deg,
        #19191f 25%,
        #2c2b33 50%,
        #19191f 75%
    );
    background-size: 600px 100%;
    animation: k-shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}
html[data-theme="light"] .k-shimmer {
    background: linear-gradient(
        90deg,
        #e0e0e6 25%,
        #c8c8cf 50%,
        #e0e0e6 75%
    );
    background-size: 600px 100%;
}

/* Skeleton card — mirrors .k-prod-card layout */
.k-skeleton-card {
    background: #19191f;          /* --k-surface-2 dark */
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
html[data-theme="light"] .k-skeleton-card {
    background: #ececf1;          /* --k-surface-2 light */
}
.k-skeleton-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
}
.k-skeleton-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .625rem;
    flex: 1;
}
.k-skeleton-card__badge {
    height: 16px;
    width: 40%;
    border-radius: 4px;
}
.k-skeleton-card__title {
    height: 14px;
    width: 90%;
}
.k-skeleton-card__title--short { width: 60%; }
.k-skeleton-card__price {
    height: 20px;
    width: 45%;
    margin-top: .25rem;
}
.k-skeleton-card__btn {
    height: 36px;
    width: 100%;
    border-radius: 8px;
    margin-top: auto;
}

/* ── Mobile touch targets ─────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Filter chips — 44px min-height, readable font on mobile */
    .k-filters__chip {
        min-height: 44px;
        font-size: 12px;
        padding: 0.75rem 0.875rem;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    /* Gap between chips already 8px (0.5rem) — ensure it on mobile */
    .k-filters__chips {
        gap: 0.5rem;
    }

    /* Filter reset + toggle buttons */
    .k-filters__reset,
    .k-filters__group-toggle {
        min-height: 44px;
    }

    /* Price thumb handles */
    .k-filters__price-thumb {
        width: 24px;
        height: 24px;
    }
}

/* =========================================================
   WCAG AA — Focus rings (catalog-specific interactive elements)
   ========================================================= */

/* Filter group toggle (accordion collapse/expand) */
.k-filters__group-toggle:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.7);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Filter chips (attribute selectors) */
.k-filters__chip:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.8);
    outline-offset: 2px;
}

/* Category sidebar links */
.k-filters__cat-link:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.5);
    outline-offset: -2px;
}

/* Price range text inputs */
.k-filters__price-values input:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.6);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Sort select */
.k-toolbar__sort select:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.7);
    outline-offset: 2px;
    border-radius: 4px;
}

/* View-mode toggle buttons (grid / list) */
.k-toolbar__view-btn:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Light-mode overrides — stronger contrast (cyan #0099BB on light bg) */
html[data-theme="light"] .k-filters__group-toggle:focus-visible,
html[data-theme="light"] .k-filters__chip:focus-visible,
html[data-theme="light"] .k-toolbar__view-btn:focus-visible {
    outline-color: rgba(0, 153, 187, 0.9);
}

