/* ========================================
   Favorilerim Sayfası Modern Tasarım
   ======================================== */

/* Product Grid Override for Favori Page */
.favori-container .product-grid {
    margin-top: 32px;
}

.favori-container .product-grid .product-card {
    margin-bottom: 24px;
}

/* Favori Delete Button for Product Card */
.favori-delete-btn-new {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 59, 48, 0.95);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.favori-delete-btn-new:hover {
    background: #FF3B30;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.5);
}

.favori-delete-btn-new:active {
    transform: scale(1.05) rotate(90deg);
}

.favori-delete-btn-new i {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .favori-delete-btn-new {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }
}

/* Breadcrumb Bölümü */
.favori-breadcrumb {
    background: linear-gradient(135deg, #0B0C0D 0%, #131518 100%);
    padding: 40px 0;
    margin-bottom: 48px;
    border-radius: 0 0 30px 30px;
}

.favori-breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.favori-breadcrumb .breadcrumb a {
    color: #9B30FF;
    font-weight: 600;
    transition: all 0.3s ease;
}

.favori-breadcrumb .breadcrumb a:hover {
    color: #F8F8FF;
}

.favori-breadcrumb .breadcrumb span {
    color: #7A7F85;
}

.favori-breadcrumb h1 {
    color: #F8F8FF;
    font-size: 36px;
    margin-top: 16px;
    font-weight: 700;
}

/* Ana Container */
.favori-container {
    padding: 0 0 80px;
}

/* Favori Kartı */
.favori-card {
    background: #131518;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.favori-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9B30FF 0%, #BD5FFF 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.favori-card:hover::before {
    transform: scaleX(1);
}

.favori-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(155, 48, 255, 0.2);
}

/* Sil Butonu */
.favori-delete-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.favori-delete-btn:hover {
    background: #9B30FF;
    transform: rotate(90deg) scale(1.1);
}

.favori-delete-btn i {
    color: #F8F8FF;
    font-size: 18px;
}

/* Ürün Resim Alanı */
.favori-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    background: #0B0C0D;
    margin-bottom: 20px;
}

.favori-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 20px;
}

.favori-card:hover .favori-image-wrapper img {
    transform: scale(1.1);
}

/* Ürün Bilgileri */
.favori-product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favori-product-title {
    color: #F8F8FF;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favori-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.favori-product-title a:hover {
    color: #9B30FF;
}

/* Yıldız Rating */
.favori-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.favori-stars {
    display: flex;
    gap: 4px;
}

.favori-stars i {
    color: #FFB800;
    font-size: 14px;
}

.favori-stars i.empty {
    color: #3D3D3D;
}

/* Fiyat Alanı */
.favori-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.favori-price {
    color: #9B30FF;
    font-size: 24px;
    font-weight: 700;
}

.favori-currency {
    font-size: 16px;
    color: #7A7F85;
    margin-left: 4px;
}

/* Sepete Ekle Butonu */
.favori-add-cart {
    background: #9B30FF;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favori-add-cart:hover {
    background: #BD5FFF;
    transform: scale(1.1);
}

.favori-add-cart i {
    color: #F8F8FF;
    font-size: 20px;
}

/* Boş Favori Durumu */
.favori-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #131518;
    border-radius: 30px;
    margin-top: 32px;
}

.favori-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #9B30FF 0%, #BD5FFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.favori-empty-icon i {
    font-size: 60px;
    color: #F8F8FF;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(155, 48, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(155, 48, 255, 0);
    }
}

.favori-empty-title {
    color: #F8F8FF;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.favori-empty-text {
    color: #7A7F85;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Arama Formu */
.favori-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.favori-search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid rgba(155, 48, 255, 0.3);
    transition: all 0.3s ease;
}

.favori-search-wrapper:focus-within {
    border-color: #9B30FF;
    box-shadow: 0 0 0 4px rgba(155, 48, 255, 0.1);
}

.favori-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 24px;
    color: #F8F8FF;
    font-size: 16px;
    outline: none;
}

.favori-search-input::placeholder {
    color: #7A7F85;
}

.favori-search-btn {
    background: #9B30FF;
    border: none;
    padding: 16px 32px;
    color: #F8F8FF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favori-search-btn:hover {
    background: #BD5FFF;
}

/* Sayfa Başlığı */
.favori-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.favori-page-title {
    color: #F8F8FF;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.favori-count {
    background: rgba(155, 48, 255, 0.2);
    color: #9B30FF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Temizle Butonu */
.favori-clear-all {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #F8F8FF;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favori-clear-all:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.5);
    color: #FF3B30;
}

/* Loading Animasyonu */
.favori-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #9B30FF;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Tasarım */
@media (max-width: 991px) {
    .favori-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Sayfa içeriğinde zaten başlık/bağlam var; breadcrumb’daki büyük h1 gizlenir */
    .favori-breadcrumb h1 {
        display: none;
    }
}

/* Mobil / tablet — boş durum kutusu ve rozet (giriş sayfalarındaki gibi daha minimal) */
@media (max-width: 767.98px) {
    .favori-container {
        padding: 0 0 48px;
    }

    .favori-breadcrumb {
        padding: 22px 0;
        margin-bottom: 28px;
        border-radius: 0 0 20px 20px;
    }

    .favori-page-header {
        margin-bottom: 18px;
        gap: 10px;
    }

    .favori-count {
        padding: 5px 11px;
        font-size: 12px;
        border-radius: 12px;
    }

    .favori-empty-state {
        padding: 28px 14px 32px;
        border-radius: 18px;
        margin-top: 20px;
    }

    .favori-empty-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 14px;
        animation: none;
    }

    .favori-empty-icon i {
        font-size: 22px;
    }

    .favori-empty-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.35;
    }

    .favori-empty-text {
        font-size: 13px;
        margin-bottom: 14px;
        line-height: 1.45;
    }

    .favori-search-form {
        max-width: 100%;
    }

    .favori-search-wrapper {
        border-radius: 12px;
        border-width: 1px;
    }

    .favori-search-wrapper:focus-within {
        box-shadow: 0 0 0 2px rgba(155, 48, 255, 0.12);
    }

    .favori-search-input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .favori-search-btn {
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

    .favori-search-btn i {
        font-size: 12px;
        margin-right: 4px;
    }
}

@media (max-width: 575px) {
    .favori-breadcrumb {
        padding: 16px 0;
    }
    
    .favori-card {
        padding: 14px;
        border-radius: 16px;
    }
    
    .favori-image-wrapper {
        height: 180px;
        margin-bottom: 12px;
    }
    
    .favori-product-title {
        font-size: 14px;
    }
    
    .favori-price {
        font-size: 18px;
    }

    .favori-empty-state {
        padding: 22px 12px 26px;
    }

    .favori-empty-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .favori-empty-icon i {
        font-size: 19px;
    }
    
    .favori-empty-title {
        font-size: 15px;
    }

    .favori-empty-text {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .favori-search-wrapper {
        flex-direction: column;
        border-radius: 10px;
    }

    .favori-search-input {
        padding: 8px 10px;
        width: 100%;
        font-size: 13px;
    }

    .favori-search-btn {
        width: 100%;
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 0 0 9px 9px;
    }

    .favori-search-btn i {
        font-size: 11px;
    }
}

