/* =========================================================
   FLEXIBLE INHALTSFLÄCHEN
   Zentral für Startseite, Kategorien und Produktseiten
   ========================================================= */

.shop-feature-group {
    display: flex;
    flex-direction: column;
    gap: var(--feature-group-gap, 20px);
    width: 100%;
    min-width: 0;
    margin: 0 0 30px;
}

.shop-feature-item {
    position: relative;
    display: block;
    width: 100%;
    max-width: var(--feature-max-width, 1200px);
    min-width: 0;
    height: auto;
    margin-right: auto;
    margin-bottom: var(--feature-extra-gap, 0);
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(207, 214, 223, 0.78);
    border-radius: 20px;
    background: #edf1f5;
    box-shadow:
        0 8px 22px rgba(20, 22, 28, 0.04),
        0 18px 40px rgba(20, 22, 28, 0.045);
    isolation: isolate;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
}

.shop-feature-item[hidden] {
    display: none !important;
}

.shop-feature-item.is-feature-leaving {
    opacity: 0;
    transform: translateY(-5px) scale(0.992);
    pointer-events: none;
}

.shop-feature {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
    border-radius: inherit;
    background: #edf1f5;
    color: inherit;
    text-decoration: none;
}

.shop-feature__media {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

.shop-feature__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
    background: #edf1f5;
    transition:
        transform 0.32s var(
            --ease,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        ),
        filter 0.32s var(
            --ease,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        );
}

.shop-feature--linked {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.shop-feature--linked::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(16, 20, 26, 0) 56%,
            rgba(16, 20, 26, 0.07) 100%
        );
    opacity: 0.68;
    transition:
        opacity 0.28s var(
            --ease,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        );
}

.shop-feature--linked:hover .shop-feature__image {
    transform: scale(1.003);
    filter: brightness(1.01);
}

.shop-feature--linked:hover::after {
    opacity: 0.42;
}

/* =========================================================
   AKTIONSFLÄCHE
   ========================================================= */

.shop-feature__action-wrap {
    position: absolute;
    inset: 16px;
    z-index: 2;
    display: flex;
    pointer-events: none;
}

.shop-feature__action-wrap.is-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.shop-feature__action-wrap.is-bottom-center {
    align-items: flex-end;
    justify-content: center;
}

.shop-feature__action-wrap.is-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

.shop-feature__action-wrap.is-center-left {
    align-items: center;
    justify-content: flex-start;
}

.shop-feature__action-wrap.is-center {
    align-items: center;
    justify-content: center;
}

.shop-feature__action-wrap.is-center-right {
    align-items: center;
    justify-content: flex-end;
}

.shop-feature__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    max-width: min(100%, 320px);
    padding: 0 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 20px rgba(20, 22, 28, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #1b2027;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        transform 0.24s var(
            --ease,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        ),
        background 0.24s var(
            --ease,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        ),
        box-shadow 0.24s var(
            --ease,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        );
}

.shop-feature__action > span {
    font-size: 13px;
    line-height: 1;
    transition:
        transform 0.24s var(
            --ease,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        );
}

.shop-feature--linked:hover .shop-feature__action {
    transform: translateY(-1px);
    background: #fff;
    box-shadow:
        0 12px 26px rgba(20, 22, 28, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shop-feature--linked:hover .shop-feature__action > span {
    transform: translateX(2px);
}

/* =========================================================
   TASTATURBEDIENUNG
   ========================================================= */

.shop-feature--linked:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.2);
    outline-offset: 3px;
}

/* =========================================================
   SCHLIESSEN UND DAUERHAFTES AUSBLENDEN
   ========================================================= */

.shop-feature__dismiss {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    background: rgba(17, 21, 27, 0.82);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.shop-feature__dismiss span {
    display: block;
    font-size: inherit;
    line-height: 1;
    transform: translateY(-1px);
}

.shop-feature__dismiss:hover {
    transform: scale(1.06);
    background: rgba(198, 40, 40, 0.94);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 0 5px rgba(198, 40, 40, 0.13);
}

.shop-feature__dismiss:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.28);
    outline-offset: 3px;
}

/* =========================================================
   SICHTBARKEIT DESKTOP
   ========================================================= */

@media (min-width: 701px) {
    .shop-feature-item.is-wide-hidden {
        display: none !important;
    }
}

/* =========================================================
   TABLET UND MOBIL
   ========================================================= */

@media (max-width: 700px) {
    .shop-feature-group {
        gap: var(--feature-group-gap, 16px);
        margin-bottom: 25px;
    }

    .shop-feature-item {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
        border-radius: 16px;
        box-shadow:
            0 7px 18px rgba(20, 22, 28, 0.04),
            0 14px 32px rgba(20, 22, 28, 0.04);
    }

    .shop-feature-item.is-small-hidden {
        display: none !important;
    }

    .shop-feature__action-wrap {
        inset: 12px;
    }

    .shop-feature__action {
        min-height: 37px;
        max-width: min(100%, 260px);
        padding: 0 13px;
        border-radius: 9px;
        font-size: 12px;
    }

    .shop-feature__dismiss {
        top: 9px;
        right: 9px;
        width: 42px;
        height: 42px;
        border-width: 2px;
        font-size: 30px;
    }
}

@media (max-width: 420px) {
    .shop-feature-group {
        margin-bottom: 22px;
    }

    .shop-feature-item {
        border-radius: 14px;
    }

    .shop-feature__action-wrap {
        inset: 10px;
    }

    .shop-feature__action {
        min-height: 35px;
        padding: 0 11px;
        font-size: 11px;
    }
}

/* =========================================================
   REDUZIERTE BEWEGUNGEN
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .shop-feature-item,
    .shop-feature__image,
    .shop-feature__action,
    .shop-feature__action > span,
    .shop-feature__dismiss {
        transition: none;
    }

    .shop-feature--linked:hover .shop-feature__image,
    .shop-feature--linked:hover .shop-feature__action,
    .shop-feature__dismiss:hover {
        transform: none;
    }
}

/* =========================================================
   EINBAUPOSITIONEN
   ========================================================= */

.shop-feature-location {
    width: 100%;
    min-width: 0;
}

.shop-feature-location--before-hero {
    padding: 0 0 18px;
}

.shop-feature-location--before-hero .shop-feature-group {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .shop-feature-location--before-hero {
        padding-bottom: 12px;
    }
}

/* =========================================================
   PRODUKTSEITEN-POSITIONEN
   ========================================================= */

.product-feature-location {
    width: 100%;
    min-width: 0;
}

.product-feature-location .shop-feature-group {
    margin-bottom: 0;
}

.product-feature-location--top {
    padding-top: 0;
}

@media (max-width: 700px) {
    .product-feature-location {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .product-feature-location--top {
        padding-top: 0;
    }
}