/* =====================================================================
   Kategorie-Seite: Unterkategorie-Slider
   Datei: assets/category-filter.css
   Aufbau:  [‹]  [ Chips … scrollbar … ]  [›]
   Hohe Spezifität + all:unset, damit globale button-/img-Regeln
   des Shops nicht durchschlagen. Kernmaße stehen zusätzlich inline.
   ===================================================================== */

.shop-section-head h1 { margin: 0; }
.category-count { margin: 4px 0 0; font-size: 14px; color: #7a7067; }

/* ---------- Viewport mit weichen Ausblendkanten ---------- */
.shop-scope .subcat-viewport::before,
.shop-scope .subcat-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 1;
}
.shop-scope .subcat-viewport::before {
    left: 0;
    background: linear-gradient(to right, var(--bg, #f9f6f1), rgba(249, 246, 241, 0));
}
.shop-scope .subcat-viewport::after {
    right: 0;
    background: linear-gradient(to left, var(--bg, #f9f6f1), rgba(249, 246, 241, 0));
}
.shop-scope .subcat-filter-wrap.can-prev .subcat-viewport::before,
.shop-scope .subcat-filter-wrap.can-next .subcat-viewport::after { opacity: 1; }

/* ---------- Chip-Spur ---------- */
.shop-scope .subcat-filter {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    box-sizing: border-box;
    scrollbar-width: none;
}
.shop-scope .subcat-filter::-webkit-scrollbar { display: none; }
.shop-scope .subcat-filter-wrap:not(.is-overflowing) .subcat-filter { justify-content: center; }

/* ---------- Chips ---------- */
.shop-scope .subcat-filter .subcat-chip {
    all: unset;
    box-sizing: border-box;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 5px 14px 5px 5px;
    border: 1px solid #e6ded3;
    border-radius: 999px;
    background: #fff;
    color: #2b2620;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 1px 2px rgba(60, 40, 20, .05);
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
@media (hover: hover) {
    .shop-scope .subcat-filter .subcat-chip:hover {
        border-color: #cfc3b4;
        box-shadow: 0 4px 14px rgba(60, 40, 20, .09);
    }
}
.shop-scope .subcat-filter .subcat-chip:active { transform: scale(.97); }
.shop-scope .subcat-filter .subcat-chip:focus-visible {
    outline: 2px solid var(--accent, #c2185b);
    outline-offset: 2px;
}

.shop-scope .subcat-filter .subcat-chip img,
.shop-scope .subcat-filter .subcat-chip .subcat-chip-icon {
    display: block;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    max-width: 42px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3ede5;
    box-sizing: border-box;
}
.shop-scope .subcat-filter .subcat-chip .subcat-chip-icon {
    display: grid;
    place-items: center;
    color: #6b6259;
    font-weight: 700;
}
.shop-scope .subcat-filter .subcat-chip .subcat-chip-icon svg { width: 20px; height: 20px; }
.shop-scope .subcat-filter .subcat-chip-label { color: inherit; }
.shop-scope .subcat-filter .subcat-chip-count {
    min-width: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3ede5;
    color: #6b6259;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.shop-scope .subcat-filter .subcat-chip.is-active {
    background: var(--accent, #c2185b);
    border-color: var(--accent, #c2185b);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 25, 45, .18);
}
.shop-scope .subcat-filter .subcat-chip.is-active .subcat-chip-count { background: rgba(255, 255, 255, .22); color: #fff; }
.shop-scope .subcat-filter .subcat-chip.is-active .subcat-chip-icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Pfeile direkt neben der Spur ---------- */
.shop-scope .subcat-filter-wrap .subcat-nav {
    all: unset;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    place-items: center;
    background: #fff;
    color: #2b2620;
    border: 1px solid #e6ded3;
    box-shadow: 0 2px 8px rgba(60, 40, 20, .08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .2s ease, transform .15s ease;
}
.shop-scope .subcat-filter-wrap .subcat-nav svg { display: block; }
@media (hover: hover) {
    .shop-scope .subcat-filter-wrap .subcat-nav:not(:disabled):hover {
        background: #2b2620;
        border-color: #2b2620;
        color: #fff;
    }
}
.shop-scope .subcat-filter-wrap .subcat-nav:not(:disabled):active { transform: scale(.92); }
.shop-scope .subcat-filter-wrap .subcat-nav:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}
.shop-scope .subcat-filter-wrap .subcat-nav:focus-visible {
    outline: 2px solid var(--accent, #c2185b);
    outline-offset: 2px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .shop-scope .subcat-filter .subcat-chip { height: 48px; font-size: 14px; }
    .shop-scope .subcat-filter .subcat-chip img,
    .shop-scope .subcat-filter .subcat-chip .subcat-chip-icon {
        width: 38px !important; height: 38px !important; min-width: 38px; max-width: 38px;
    }
}

/* ---------- Handy: randlos wischen, keine Pfeile ---------- */
@media (max-width: 640px) {
    .shop-scope .subcat-filter-wrap {
        width: 100% !important;
        gap: 0 !important;
    }
    .shop-scope .subcat-filter-wrap .subcat-nav { display: none !important; }
    .shop-scope .subcat-filter { gap: 8px; padding: 6px 16px; scroll-padding-inline: 16px; }
    .shop-scope .subcat-viewport::before,
    .shop-scope .subcat-viewport::after { width: 28px; }
    .shop-scope .subcat-filter .subcat-chip {
        height: 42px;
        gap: 8px;
        padding: 4px 12px 4px 4px;
        font-size: 13.5px;
    }
    .shop-scope .subcat-filter .subcat-chip img,
    .shop-scope .subcat-filter .subcat-chip .subcat-chip-icon {
        width: 34px !important; height: 34px !important; min-width: 34px; max-width: 34px;
    }
    .shop-scope .subcat-filter .subcat-chip .subcat-chip-icon svg { width: 16px; height: 16px; }
    .shop-scope .subcat-filter .subcat-chip-count { font-size: 11px; padding: 1px 7px; }
}

/* ---------- Hinweiskasten (Magenta) ---------- */
.shop-scope .subcat-hint {
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #f5c2db;
    border-radius: 14px;
    background: #fdf0f6;
    color: #6d0039;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
}
.shop-scope .subcat-hint strong { color: #d4006e; font-weight: 700; }
.shop-scope .subcat-hint-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d4006e;
    color: #fff;
    flex-shrink: 0;
}
.shop-scope .subcat-hint-icon svg { display: block; }
.shop-scope .subcat-hint .subcat-hint-arrow {
    all: unset;
    box-sizing: border-box;
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: 0 2px;
    border-radius: 50%;
    background: #d4006e;
    color: #fff;
    vertical-align: -6px;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}
.shop-scope .subcat-hint .subcat-hint-arrow:hover { background: #a8005a; }
.shop-scope .subcat-hint .subcat-hint-arrow:active { transform: scale(.9); }
.shop-scope .subcat-hint .subcat-hint-arrow:focus-visible { outline: 2px solid #d4006e; outline-offset: 2px; }
.shop-scope .subcat-hint .subcat-hint-arrow svg { display: block; }

/* ---------- Rechter Pfeil in Magenta + Puls ---------- */
.shop-scope .subcat-filter-wrap .subcat-nav-next:not(:disabled) {
    background: #d4006e;
    border-color: #d4006e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 0, 110, .3);
}
@media (hover: hover) {
    .shop-scope .subcat-filter-wrap .subcat-nav-next:not(:disabled):hover {
        background: #a8005a;
        border-color: #a8005a;
        color: #fff;
    }
}
.shop-scope .subcat-filter-wrap .subcat-nav-next.is-attention {
    animation: subcat-pulse 1.8s ease-out infinite;
}
@keyframes subcat-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(212, 0, 110, .5); }
    70%  { box-shadow: 0 0 0 14px rgba(212, 0, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 0, 110, 0); }
}

@media (max-width: 640px) {
    .shop-scope .subcat-hint {
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 13.5px;
    }
    .shop-scope .subcat-hint-icon { width: 30px; height: 30px; }
    .shop-scope .subcat-hint-icon svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-scope .subcat-filter-wrap .subcat-nav-next.is-attention { animation: none; }
}

/* ---------- Schutz gegen globale Button-Zustände des Shops ---------- */
/* (verhindert z. B. pinke Chips nach dem Antippen auf dem Handy) */
.shop-scope .subcat-filter .subcat-chip:not(.is-active):hover,
.shop-scope .subcat-filter .subcat-chip:not(.is-active):focus,
.shop-scope .subcat-filter .subcat-chip:not(.is-active):active {
    background: #fff !important;
    color: #2b2620 !important;
}
.shop-scope .subcat-filter .subcat-chip.is-active:hover,
.shop-scope .subcat-filter .subcat-chip.is-active:focus,
.shop-scope .subcat-filter .subcat-chip.is-active:active {
    background: var(--accent, #c2185b) !important;
    color: #fff !important;
}

/* ---------- Überschrift + Artikelanzahl auf dem Handy untereinander ---------- */
@media (max-width: 640px) {
    .shop-scope .shop-section-head {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
    .shop-scope .shop-section-head h1 { font-size: 30px; line-height: 1.15; }
}

/* ---------- ausgefilterte Karten ---------- */
.shop-scope .product-grid .product-card[hidden] { display: none !important; }

/* ---------- SEO-Text unter dem Raster ---------- */
.shop-scope .category-body-text {
    color: #4a433c;
    line-height: 1.7;
}
.shop-scope .category-body-text p { margin: 0 0 14px; max-width: none; }
.shop-scope .category-body-text p:last-child { margin-bottom: 0; }
.category-body-text h3 { margin: 28px 0 8px; font-size: 20px; color: #2b2620; }
.category-body-text h3:first-child { margin-top: 0; }

.category-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; }
.category-empty-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--accent, #c2185b); }

@media (prefers-reduced-motion: reduce) {
    .shop-scope .subcat-filter .subcat-chip,
    .shop-scope .subcat-filter-wrap .subcat-nav,
    .shop-scope .subcat-viewport::before,
    .shop-scope .subcat-viewport::after { transition: none; }
}
