
/* ==========================================================
   XL MIT PFIFF ? SHOP THE LOOK
   2 Looks nebeneinander / Produkte unterhalb
   ========================================================== */

/* ----------------------------------------------------------
   1. GRID MIT ZWEI LOOKS
   ---------------------------------------------------------- */

.stl-looks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
    align-items: stretch;
}




/* ----------------------------------------------------------
   2. EINZELNE LOOK-KACHEL
   ---------------------------------------------------------- */

.stl-looks-grid .stl-look {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 16px;

    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    box-sizing: border-box;

    overflow: hidden;
}


/* ----------------------------------------------------------
   3. GROSSES MODEL- / FLATLAY-BILD
   ---------------------------------------------------------- */

.stl-looks-grid .stl-hero {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
    margin: 0 0 18px;
    padding: 0;

    background: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
}

.stl-looks-grid .stl-hero-main {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;

    object-fit: contain;
    object-position: center;
}


/* ----------------------------------------------------------
   4. FLATLAY-VORSCHAU UND BILDWECHSEL
   ---------------------------------------------------------- */

.stl-looks-grid .stl-hero-switch {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 92px;
    height: 118px;
    margin: 0;
    padding: 4px;

    background: #fff;
    border: 2px solid #fff;
    border-radius: 10px;

    cursor: pointer;
    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,.18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.stl-looks-grid .stl-hero-switch:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 26px rgba(0,0,0,.25);
}

.stl-looks-grid .stl-hero-switch:focus-visible {
    outline: 3px solid #e4ac45;
    outline-offset: 3px;
}

.stl-looks-grid .stl-hero-switch img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;

    object-fit: contain;
    object-position: center;
    border-radius: 5px;
}

/* Hinweis auf KI-generiertes Inspirationsbild */

.stl-looks-grid .stl-hero figcaption {
    position: absolute;
    top: auto;
    left: 12px;
    right: auto;
    bottom: 12px;
    z-index: 3;

    max-width: calc(100% - 24px);
    width: auto;
    padding: 5px 9px;

    color: #555;
    background: rgba(255,255,255,.92);
    border-radius: 5px;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;

    pointer-events: none;
}


/* ----------------------------------------------------------
   5. CONTENT-BEREICH
   ---------------------------------------------------------- */

.stl-looks-grid .stl-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;

    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}


/* ----------------------------------------------------------
   6. HEADLINE / BESCHREIBUNG
   ---------------------------------------------------------- */

.stl-looks-grid .stl-intro {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
}

.stl-looks-grid .stl-intro h2 {
    margin: 0 0 8px;
    padding: 0;

    color: #222;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.3px;
}

.stl-looks-grid .stl-description {
    margin: 0;
    padding: 10px;

    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   7. PRODUKTLISTE ? MAXIMAL 3 NEBENEINANDER
   ---------------------------------------------------------- */

.stl-looks-grid .stl-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;

    gap: 10px;
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* ----------------------------------------------------------
   8. PRODUKTKARTEN
   ---------------------------------------------------------- */

.stl-looks-grid .stl-products > li.overview {
    position: relative;

    display: flex;
    flex-direction: column;

    float: none;
    clear: none;

    min-width: 0;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 8px;

    background: #fff;
    border: 1px solid #ececec;
    border-radius: 9px;
    box-shadow: none;

    box-sizing: border-box;
    overflow: hidden;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.stl-looks-grid .stl-products > li.overview:hover {
    border-color: #d1d1d1;
    box-shadow: 0 4px 16px rgba(0,0,0,.045);
}


/* ----------------------------------------------------------
   9. PRODUKTBILDER
   ---------------------------------------------------------- */

.stl-looks-grid .stl-products .image {
    position: relative;

    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;

    margin: 0 0 9px;
    padding: 0;

    background: #fafafa;
    border-radius: 5px;
    overflow: hidden;
}

.stl-looks-grid .stl-products .image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.stl-looks-grid .stl-products .ImageUebersicht {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;
    border: 0;
}


/* ----------------------------------------------------------
   10. MERKZETTEL / KI-INFO / SALE-MARKER
   ---------------------------------------------------------- */

/* Vorhandene Funktionen bleiben erhalten */

.stl-looks-grid .stl-products .wishlist_ga {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
}

.stl-looks-grid .stl-products .ki_info {
    position: absolute;
    left: 5px;
    bottom: 5px;
    z-index: 3;
}

.stl-looks-grid .stl-products .SalesMarkerHolder {
    z-index: 3;
}


/* ----------------------------------------------------------
   11. PRODUKTNAME / MARKE
   ---------------------------------------------------------- */

.stl-looks-grid .stl-products .text {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;

    margin: 0 0 10px;
    padding: 0;

    color: #333;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;

    overflow-wrap: anywhere;
}

.stl-looks-grid .stl-products .group_text_marke {
    display: block;
    margin: 0 0 4px;

    color: #888;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

.stl-looks-grid .stl-products .ArtikelLink {
    display: block;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.stl-looks-grid .stl-products .ArtikelLink:hover {
    text-decoration: underline;
}


/* ----------------------------------------------------------
   12. PREISE
   ---------------------------------------------------------- */

.stl-looks-grid .stl-products .preis {
    display: block;
    width: 100%;
    height: auto;
    margin: auto 0 0;
    padding: 0;

    color: #222;
    text-align: left;
}

.stl-looks-grid .stl-products .preis_a,
.stl-looks-grid .stl-products .preis_b {
    margin: 0;
    padding: 0;
}

.stl-looks-grid .stl-products .PreisNormal {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.stl-looks-grid .stl-products .PreisAlt:empty {
    display: none;
}


/* ----------------------------------------------------------
   13. QUICKBUY
   ---------------------------------------------------------- */

.stl-looks-grid .stl-products .quickview {
    display: flex;
    align-items: center;
    justify-content: center;

    align-self: flex-end;

    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    margin: 10px 0 0;
    padding: 0;

    color: #222;
    background: #f2f2f2;
    border: 0;
    border-radius: 50%;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.stl-looks-grid .stl-products .quickview:hover {
    color: #fff;
    background: #222;
}


/* ----------------------------------------------------------
   14. GESAMTPREIS
   ---------------------------------------------------------- */

.stl-looks-grid .stl-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
    width: 100%;
    min-width: 0;

    margin: auto 0 0;
    padding: 18px 0 0;

    background: transparent;
    border: 0;
    border-top: 0;

    box-sizing: border-box;
}

.stl-looks-grid .stl-summary > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.stl-looks-grid .stl-summary > div > strong {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.stl-looks-grid .stl-summary small {
    color: #888;
    font-size: 11px;
}

.stl-looks-grid .stl-total {
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}


/* ----------------------------------------------------------
   15. TABLET
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .stl-looks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        max-width: 650px;
    }

    .stl-looks-grid .stl-hero {
        aspect-ratio: 4 / 5;
    }
}


/* ----------------------------------------------------------
   16. SMARTPHONE
   ---------------------------------------------------------- */

@media (max-width: 480px) {

    .stl-looks-grid {
      	grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 18px;
        padding: 10px 0;
    }

    .stl-looks-grid .stl-look {
        padding: 10px;
        border-radius: 10px;
    }

    .stl-looks-grid .stl-hero {
        aspect-ratio: 3 / 4;
        margin-bottom: 14px;
        border-radius: 8px;
    }

    .stl-looks-grid .stl-hero-switch {
        width: 72px;
        height: 96px;
        right: 10px;
        bottom: 10px;
        border-radius: 7px;
    }

    .stl-looks-grid .stl-hero figcaption {
        botton: 8px;
        left: 8px;
        font-size: 9px;
    }

    .stl-looks-grid .stl-intro {
        margin-bottom: 14px;
    }

    .stl-looks-grid .stl-intro h2 {
        font-size: 19px;
        margin-bottom: 6px;
    }

    .stl-looks-grid .stl-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .stl-looks-grid .stl-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .stl-looks-grid .stl-products > li.overview {
        padding: 5px;
        border-radius: 6px;
    }

    .stl-looks-grid .stl-products .image {
        margin-bottom: 6px;
    }

    .stl-looks-grid .stl-products .text {
        font-size: 11px;
        margin-bottom: 7px;
    }

    .stl-looks-grid .stl-products .group_text_marke {
        font-size: 9px;
    }

    .stl-looks-grid .stl-products .ArtikelLink {
        font-size: 11px;
    }

    .stl-looks-grid .stl-products .PreisNormal {
        font-size: 12px;
    }

    .stl-looks-grid .stl-products .quickview {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 20px;
        margin-top: 8px;
    }

    .stl-looks-grid .stl-summary {
        padding-top: 14px;
    }

    .stl-looks-grid .stl-summary > div > strong {
        font-size: 12px;
    }

    .stl-looks-grid .stl-total {
        font-size: 17px;
    }
}



/* ===================================================
   SHOP THE LOOK ? KOMPAKTE PRODUKTLISTE
   =================================================== */

ul.stl-products {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}

/* ===================================================
   EINZELNER ARTIKEL
   =================================================== */

ul.stl-products > li.overview.artikel {
    position: relative;

    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) 42px;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;

    align-items: center;

    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 12px 0 !important;

    float: none !important;
    clear: none !important;

    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #ededed !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

ul.stl-products > li.overview.artikel:last-child {
    border-bottom: 0 !important;
}

ul.stl-products > li.overview.artikel:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Alte Karten-Pseudoelemente neutralisieren */

ul.stl-products > li.overview.artikel::before,
ul.stl-products > li.overview.artikel::after {
    box-shadow: none !important;
}

/* ===================================================
   PRODUKTBILD
   =================================================== */

ul.stl-products > li.overview.artikel > .image {
    position: relative;

    grid-column: 1;
    grid-row: 1 / 3;

    display: block;

    width: 50px !important;
    height: auto !important;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    background: #f6f6f6;
    border: 0 !important;
    border-radius: 5px;

    overflow: hidden;
    box-shadow: none !important;
}

ul.stl-products .image > a {
    display: block;
    width: 100%;
    height: 100%;
}

ul.stl-products .image img.ImageUebersicht {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;
    object-position: center;

    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ===================================================
   PRODUKTINFORMATIONEN
   =================================================== */

ul.stl-products > li.overview.artikel > .text {
    grid-column: 2;
    grid-row: 1;

    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    gap: 3px;

    width: 100% !important;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    text-align: left !important;
}

/* Marke */

ul.stl-products .group_text_marke {
    display: block;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    color: #888 !important;

    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.3;

    text-transform: uppercase;
    letter-spacing: .035em;
    text-align: left !important;
}

/* Artikelname */

ul.stl-products .ArtikelLink {
    display: -webkit-box;

    width: 100%;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    color: #222 !important;

    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.35;

    text-decoration: none !important;
    text-align: left !important;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

ul.stl-products .ArtikelLink:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* ===================================================
   PREIS
   =================================================== */

ul.stl-products > li.overview.artikel > .preis {
    grid-column: 2;
    grid-row: 2;

    display: flex !important;
    flex-direction: column;
    align-items: flex-start;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    text-align: left !important;
}

ul.stl-products .preis_a,
ul.stl-products .preis_b {
    display: block;
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;
}

ul.stl-products .PreisNormal {
    color: #151515 !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3;

    text-align: left !important;
}

ul.stl-products .PreisAlt:empty,
ul.stl-products .preis_b:has(.PreisAlt:empty) {
    display: none !important;
}

/* ===================================================
   QUICKBUY ? RECHTE SEITE
   =================================================== */

ul.stl-products .quickview {
    position: relative !important;

    grid-column: 3;
    grid-row: 1 / 3;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;

    margin: 0 !important;
    padding: 0 !important;

    background: #f7f7f7 !important;
    color: #111 !important;

    border: 1px solid #e9e9e9 !important;
    border-radius: 50% !important;

    box-shadow: none !important;

    font-family: 'Materials' !important;
    font-size: 22px !important;
    font-weight: normal !important;
    font-style: normal;
    line-height: 1;

    font-variation-settings:
        'FILL' 0,
        'wght' 350,
        'GRAD' 0,
        'opsz' 24;

    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;

    cursor: pointer;

    opacity: 1 !important;
    visibility: visible !important;

    transform: none !important;
    transition:
        background-color .15s ease,
        color .15s ease;
}

@media (hover: hover) {
    ul.stl-products .quickview:hover {
        background: #111 !important;
        color: #fff !important;
        border-color: #111 !important;
        box-shadow: none !important;
    }
}

/* ===================================================
   KI-ICON
   =================================================== */

/* Die vorhandene Kennzeichnung bleibt erhalten,
   aber deutlich kleiner als in den alten Karten. */

ul.stl-products .ki_info {
    position: absolute !important;
    z-index: 3;

    left: 3px !important;
    bottom: 3px !important;
    top: auto !important;
    right: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: scale(.75);
    transform-origin: bottom left;
}

/* ===================================================
   WISHLIST AUSBLENDEN
   Nur innerhalb Shop the Look
   =================================================== */

ul.stl-products
.wishlist-overview-button-container {
    display: none !important;
}

/* ===================================================
   SALE MARKER
   =================================================== */

ul.stl-products .SalesMarkerHolder {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

/* ===================================================
   MOBILE
   =================================================== */

@media (max-width: 767px) {

    ul.stl-products > li.overview.artikel {
        grid-template-columns: 64px minmax(0, 1fr) 38px;
        column-gap: 10px;
        row-gap: 3px;

        padding: 10px 0 !important;
    }

    ul.stl-products > li.overview.artikel > .image {
        width: 64px !important;
        height: 76px !important;
    }

    ul.stl-products .group_text_marke {
        font-size: 9px !important;
    }

    ul.stl-products .ArtikelLink {
        font-size: 12px !important;
    }

    ul.stl-products .PreisNormal {
        font-size: 14px !important;
    }

    ul.stl-products .quickview {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px;
        min-height: 38px;

        font-size: 21px !important;
    }
}

/* ===================================================
   SEHR SCHMALE DISPLAYS
   =================================================== */

@media (max-width: 360px) {

    ul.stl-products > li.overview.artikel {
        grid-template-columns: 56px minmax(0, 1fr) 36px;
        column-gap: 8px;
    }

    ul.stl-products > li.overview.artikel > .image {
        width: 56px !important;
        height: 68px !important;
    }

    ul.stl-products .ArtikelLink {
        font-size: 11px !important;
    }

    ul.stl-products .quickview {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
        min-height: 36px;
    }
}

