/**
 * GentechStore.az - Wishlist Styles
 * Consolidated & Cleaned version
 */

/* ========================================================================= */
/* NOTİFİKASİYALARI GİZLƏT */
/* ========================================================================= */
.gentech-notification {
    display: none !important;
}

/* ========================================================================= */
/* WİSHLİST BUTTON - Məhsul Kartında (Header-də/Arxiv-də) */
/* ========================================================================= */

.gentech-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gentech-wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gentech-wishlist-btn i {
    font-size: 20px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.gentech-wishlist-btn.in-wishlist i {
    color: #ef4444;
}

.gentech-wishlist-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Single product səhifəsində wishlist button */
.wishlist-single {
    width: 100%;
    height: auto;
    padding: 12px 24px;
    margin-top: 12px;
    border-radius: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    top: auto;
    right: auto;
    box-shadow: none;
}

.wishlist-single:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.wishlist-single .wishlist-text {
    margin-left: 8px;
    font-weight: 600;
}

/* ========================================================================= */
/* WİSHLİST COUNT BADGE - Header-də */
/* ========================================================================= */

.wishlist-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wishlist-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.wishlist-count-badge:not(:empty) {
    display: flex;
}

/* 0 olduqda gizlət */
.wishlist-count-badge.hidden,
.wishlist-count-badge:empty {
    display: none !important;
}

/* ========================================================================= */
/* WİSHLİST SƏHİFƏSİ - ÜMUMİ DİZAYN */
/* ========================================================================= */

.gentech-wishlist-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.wishlist-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    text-align: center;
}

/* Boş Wishlist */
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.wishlist-empty .btn-primary {
    background-color: #0D6EFD !important;
    color: #FFFFFF !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.wishlist-empty .btn-primary:hover {
    background-color: #0a58ca !important;
    transform: translateY(-2px);
}

/* Wishlist Grid */
.wishlist-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Məhsul Kartı */
.wishlist-item {
    transition: all 0.3s ease;
}

.wishlist-item-card {
    background: #ffffff;
    border: 1px solid #dce0e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gentech-wishlist-page .wishlist-item-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #adb5bd;
}

/* Şəkil Container */
.wishlist-item-image-wrapper {
    position: relative;
    background: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-height: 180px;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 150px;
}

/* Silmə düyməsi (ürək) */
.wishlist-remove-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.wishlist-remove-icon i {
    color: #dc3545;
}

.wishlist-remove-icon:hover {
    transform: scale(1.1);
}

/* Məhsul Məlumatları */
.wishlist-item-info {
    padding: 12px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    /* Mərkəzləşdir */
}

.gentech-wishlist-page .wishlist-item-info .brand-model-wrapper {
    text-align: center;
    margin: 6px 0 8px;
}

.brand-model-wrapper .urun-markasi {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.brand-model-wrapper .urun-modeli {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #0F1720;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stok - GİZLƏDİLİR (minimalist dizayn üçün) */
.wishlist-stock {
    display: none !important;
}

.wishlist-stock.in-stock {
    color: #198754;
}

.wishlist-stock.out-of-stock {
    color: #dc3545;
}

/* Qiymət */
.wishlist-item-price {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0d6efd;
    margin: 10px 0;
}

.wishlist-item-price .woocommerce-Price-amount {
    color: #0d6efd;
}

/* Səbətə Əlavə Düyməsi */
.wishlist-item-actions {
    padding: 0 15px 15px 15px;
}

.wishlist-add-to-cart-btn {
    width: 100%;
    background: #0d6efd;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wishlist-add-to-cart-btn:hover:not(:disabled) {
    background: #0a58ca;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.wishlist-add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* ========================================================================= */
/* MOBİL OPTİMİZASİYA */
/* ========================================================================= */

@media (max-width: 768px) {
    .gentech-wishlist-page {
        padding: 0 10px;
        overflow-x: hidden;
    }

    .wishlist-products {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

    .wishlist-item-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .wishlist-item-image-wrapper {
        min-height: 180px;
        max-height: 250px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .wishlist-item-info {
        padding: 15px;
        gap: 5px;
        width: 100%;
        box-sizing: border-box;
    }

    .wishlist-add-to-cart-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        font-size: 14px;
    }

    .wishlist-add-to-cart-btn span {
        white-space: nowrap;
    }

    .brand-model-wrapper .urun-markasi {
        font-size: 16px;
        font-weight: 600;
    }

    .brand-model-wrapper .urun-modeli {
        font-size: 15px;
    }

    .gentech-wishlist-page .wishlist-item-info .brand-model-wrapper {
        margin: 5px 0 10px;
    }

    .wishlist-title {
        font-size: 24px;
    }

    .wishlist-item-price {
        font-size: 20px;
        margin: 10px 0;
    }
}