/* favoriler.css — MHMotors favori (kaydedilen araç) sistemi stilleri */

:root {
    --fav-red: #ef3e33;
    --fav-red-dark: #d62c22;
}

/* ============ Kart üzerindeki kalp butonu ============ */
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ffffff54;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

    .fav-btn:hover {
        transform: scale(1.08);
    }

    .fav-btn .fav-ic {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: #fff;
        stroke-width: 2;
        transition: fill .15s ease, stroke .15s ease, transform .15s ease;
    }

    .fav-btn.is-fav .fav-ic {
        fill: var(--fav-red);
        stroke: var(--fav-red);
        animation: fav-pop .28s ease;
    }

@keyframes fav-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ============ Header / drawer favori sayacı ============ */
.mh-fav {
    position: relative;
}

.mh-fav-count {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--fav-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

/* Drawer içindeki favori butonu için sayaç (satır içi) */
.mh-fav-btn .mh-fav-count {
    position: static;
    box-shadow: none;
    margin-left: 6px;
}

/* ============ Anasayfa "Kaydedilenler" özet alanı ============ */
.fav-summary { 
    padding: 80px 0px;
}

.fav-summary__head {
    margin-bottom: clamp(28px, 4vw, 44px);
}

    .fav-summary__head h2:not(.sec-title) {
        font-size: 22px;
        font-weight: 800;
        margin: 0;
        color: #0b1e3a;
    }

/* Eyebrow ("Listeniz") + badge ("Araçlar (n)") ayni satirda */
.fav-summary__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fav-summary__badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #000;
    background: #eef1f4;
    border-radius: 999px;
    padding: 3px 11px;
    line-height: 1.5;
}

.fav-summary__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 0.9fr;
    gap: 16px;
}

/* Boş durum bandı (hiç favori yokken) */
.fav-empty-band {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f4f6f8;
    border: 1px solid #e6e9ec;
    border-radius: 14px;
    padding: 20px 26px;
}

    .fav-empty-band__heart {
        width: 34px;
        height: 34px;
        fill: var(--fav-red);
        flex: 0 0 auto;
    }

    .fav-empty-band p {
        margin: 0;
        flex: 1;
        font-size: 15px;
        font-weight: 700;
        color: #000;
    }

@media (max-width: 575.98px) {
    .fav-empty-band {
        flex-wrap: wrap;
        gap: 12px;
    }

        .fav-empty-band p {
            flex: 1 1 100%;
        }
}

/* Kompakt favori kartı */
.fav-card {
    position: relative;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}

    .fav-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
        transform: translateY(-2px);
    }

.fav-card__img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f2f4f6;
    overflow: hidden;
}

    .fav-card__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.fav-card__body {
    padding: 12px 14px 14px;
}

.fav-card__price {
    font-size: 18px;
    font-weight: 800;
    color: #0b1e3a;
}

.fav-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 2px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .fav-card__meta span {
        font-size: 12px;
        color: #4b5563;
        background: #f3f4f6;
        border-radius: 6px;
        padding: 3px 8px;
    }

.fav-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* CTA (tümünü gör) kartı */
.fav-cta {
    background: #f4f6f8;
    border: 1px solid #e6e9ec;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    gap: 12px;
}

    .fav-cta svg {
        width: 42px;
        height: 42px;
        fill: var(--fav-red);
    }

    .fav-cta p {
        font-size: 14px;
        font-weight: 700;
        color: #000;
        margin: 0;
        line-height: 1.35;
    }

.fav-cta__btn {
    display: inline-block;
    border: 1px solid #000000;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

    .fav-cta__btn:hover {
        background: #000;
        color: #fff;
    }

@media (max-width: 991.98px) {
    .fav-summary__row {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }

        .fav-summary__row > * {
            flex: 0 0 72%;
            max-width: 260px;
            scroll-snap-align: start;
        }
}

/* ============ Favorilerim sayfası ============ */
.favorilerim-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 16px 60px;
}

    .favorilerim-page > h1 {
        font-size: 28px;
        font-weight: 800;
        color: #0b1e3a;
        margin: 0 0 6px;
    }

.favorilerim-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
}

#favorilerim-liste {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991.98px) {
    #favorilerim-liste {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    #favorilerim-liste {
        grid-template-columns: 1fr;
    }
}

.fav-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f7f8fa;
    border-radius: 16px;
}

    .fav-empty svg {
        width: 54px;
        height: 54px;
        fill: var(--fav-red);
        margin-bottom: 12px;
    }

    .fav-empty h3 {
        font-size: 18px;
        font-weight: 700;
        color: #0b1e3a;
        margin: 0 0 6px;
    }

    .fav-empty p {
        color: #64748b;
        margin: 0 0 18px;
    }

.fav-empty__btn {
    display: inline-block;
    background: #0b1e3a;
    color: #fff;
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 700;
    text-decoration: none;
}

    .fav-empty__btn:hover {
        background: #14294a;
    }
