/* TATMOTIVE Merkliste 1.0.0 */

/* Herz direkt auf Produktbildern */
.tatmotive-wishlist-image-host {
    position: relative !important;
}

.tatmotive-wishlist-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    margin: 0;
    padding: 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    box-shadow: none;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.tatmotive-wishlist-heart svg {
    display: block;
    width: 27px;
    height: 27px;
    overflow: visible;
    fill: #fff;
    stroke: #111;
    stroke-width: 1.05;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.92));
    transition: transform .15s ease, fill .15s ease;
}

.tatmotive-wishlist-heart:hover svg,
.tatmotive-wishlist-heart:focus svg {
    transform: scale(1.08);
}

.tatmotive-wishlist-heart:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.tatmotive-wishlist-heart.is-saved svg {
    fill: #111;
}

.tatmotive-wishlist-heart.is-busy {
    pointer-events: none;
    opacity: .48;
}

/* Die bestehende 4er-Navigation wird auf fünf gleich breite Reiter erweitert. */
.tatmotive-account-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

@media (max-width: 767px) {
    .tatmotive-account-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tatmotive-account-nav > .tatmotive-account-nav-link:nth-child(5):last-child {
        grid-column: 1 / -1;
    }

    .tatmotive-wishlist-heart {
        top: 6px;
        right: 6px;
        width: 29px;
        height: 29px;
    }

    .tatmotive-wishlist-heart svg {
        width: 25px;
        height: 25px;
    }
}

/* Merkliste im Kundenkonto */
.tatmotive-wishlist-page {
    width: 100%;
}

.tatmotive-wishlist-column {
    float: none !important;
    width: 100%;
    max-width: 980px;
    margin: 18px auto 36px;
}

.tatmotive-wishlist-card {
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.045);
}

.tatmotive-wishlist-card > .panel-body {
    padding: 24px 28px 28px;
}

.tatmotive-wishlist-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 28px 0;
    color: #222;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.tatmotive-wishlist-title-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tatmotive-wishlist-subheading {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ececec;
    color: #333;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.tatmotive-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tatmotive-wishlist-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 7px;
    background: #fff;
}

.tatmotive-wishlist-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 145px;
    margin-bottom: 10px;
}

.tatmotive-wishlist-product-image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tatmotive-wishlist-product-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 180px;
    margin: 0 auto;
}

.tatmotive-wishlist-product-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 145px;
    border: 1px solid #eee;
    color: #aaa;
    font-size: 12px;
}

.tatmotive-wishlist-product-name {
    display: block;
    margin: 0 0 8px;
    color: #222 !important;
    font-size: 13px;
    line-height: 1.38;
    text-decoration: none !important;
}

.tatmotive-wishlist-product-name:hover,
.tatmotive-wishlist-product-name:focus {
    color: #000 !important;
    text-decoration: underline !important;
}

.tatmotive-wishlist-product-price {
    margin-top: auto;
    padding-top: 4px;
    color: #222;
    font-size: 14px;
}

.tatmotive-wishlist-product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 11px;
}

.tatmotive-wishlist-product-link,
.tatmotive-wishlist-remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    text-align: center;
    text-decoration: none !important;
}

.tatmotive-wishlist-product-link {
    border: 1px solid #ffcc33 !important;
    background: #ffcc33 !important;
    color: #111 !important;
}

.tatmotive-wishlist-product-link:hover,
.tatmotive-wishlist-product-link:focus {
    border-color: #fcc51b !important;
    background: #fcc51b !important;
    color: #000 !important;
}

.tatmotive-wishlist-remove {
    border: 1px solid #111 !important;
    background: #fff !important;
    color: #111 !important;
}

.tatmotive-wishlist-remove:hover,
.tatmotive-wishlist-remove:focus {
    border-color: #111 !important;
    background: #f5f5f5 !important;
    color: #111 !important;
}

.tatmotive-wishlist-empty {
    margin: 2px 0 0;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    background: #fafafa;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .tatmotive-wishlist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tatmotive-wishlist-column {
        max-width: none;
        margin: 10px 0 24px;
        padding: 0;
    }

    .tatmotive-wishlist-card {
        border-radius: 6px;
    }

    .tatmotive-wishlist-title {
        gap: 8px;
        padding: 18px 12px 0;
        font-size: 21px;
    }

    .tatmotive-wishlist-title-icon {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    .tatmotive-wishlist-card > .panel-body {
        padding: 14px 12px 18px;
    }

    .tatmotive-wishlist-subheading {
        font-size: 15px;
    }

    .tatmotive-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tatmotive-wishlist-product {
        padding: 9px;
    }

    .tatmotive-wishlist-product-image {
        min-height: 120px;
    }

    .tatmotive-wishlist-product-image img {
        max-height: 145px;
    }

    .tatmotive-wishlist-product-name {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .tatmotive-wishlist-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* Herz auf den kleinen Produktbildern der Bestellhistorie */
.tatmotive-wishlist-order-image-host {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.tatmotive-wishlist-order-image-host .tatmotive-wishlist-heart {
    top: -9px;
    right: -9px;
    width: 23px;
    height: 23px;
}

.tatmotive-wishlist-order-image-host .tatmotive-wishlist-heart svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.05;
}


/* Kurze Rückmeldung nach Klick auf ein Herz */
.tatmotive-wishlist-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 32px);
    min-height: 38px;
    padding: 9px 16px;
    border: 1px solid #222;
    border-radius: 7px;
    background: rgba(255,255,255,.98);
    color: #111;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.tatmotive-wishlist-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width: 767px) {
    .tatmotive-wishlist-toast {
        bottom: 18px;
        font-size: 12.5px;
    }
}


/*
 * Kategorieübersicht + Produktslider:
 * Herz 5 px weiter nach oben und 5 px weiter nach rechts.
 * Transform ist unabhängig von Desktop/Mobil-Topwerten.
 */
.product-listing .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart,
.product-slider .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart,
.carousel-outer-wrap .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart,
.listing.products .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart {
    transform: translate(5px, -5px);
}

.product-listing .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart:hover svg,
.product-listing .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart:focus svg,
.product-slider .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart:hover svg,
.product-slider .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart:focus svg,
.carousel-outer-wrap .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart:hover svg,
.carousel-outer-wrap .tatmotive-wishlist-image-host > .tatmotive-wishlist-heart:focus svg {
    transform: scale(1.06);
}
