/**
 * FabricLab Customers - Wishlist Module
 * @version 2.1.0
 * Color scheme: #ed7170 (main), #fdeceb (light background)
 */

/* ==========================================================================
   Wishlist Page Wrapper
   ========================================================================== */
.fl-wishlist-page-wrapper {
    max-width: 1150px;
    margin: 0 auto;
}

/* ==========================================================================
   Info Box Wishlist - New color scheme
   ========================================================================== */
.fl-info-box-wishlist {
    display: flex;
    padding: 18px 20px;
    background: #fdeceb;
    border: 1px solid #f5d0cf;
    border-radius: 12px;
    margin-bottom: 24px;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.fl-info-box-wishlist .fl-info-box-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #ed7170;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-info-box-wishlist .fl-info-box-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.fl-info-box-wishlist .fl-info-box-content {
    flex: 1;
}

.fl-info-box-wishlist .fl-info-box-title {
    font-size: 15px;
    font-weight: 600;
    color: #c45a59;
    margin: 0 0 4px 0;
}

.fl-info-box-wishlist .fl-info-box-text {
    font-size: 14px;
    color: #a94d4c;
    line-height: 1.5;
    margin: 0;
}

.fl-info-box-wishlist .fl-info-box-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #ed7170;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.fl-info-box-wishlist .fl-info-box-close:hover {
    opacity: 1;
}

/* ==========================================================================
   Wishlist Section Overrides
   ========================================================================== */
.fl-wishlist-section .fl-collection-header-icon {
    background: #ed7170;
}

/* ==========================================================================
   Wishlist Item - Remove Button (X)
   ========================================================================== */
.fl-wishlist-item {
    position: relative;
}

.fl-wishlist-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, color 0.2s, transform 0.2s;
    color: #6b7280;
}

.fl-wishlist-item:hover .fl-wishlist-remove {
    opacity: 1;
}

.fl-wishlist-remove:hover {
    background: #ed7170;
    color: white;
    transform: scale(1.1);
}

.fl-wishlist-remove svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Out of Stock Badge
   ========================================================================== */
.fl-wishlist-out-of-stock {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(237, 113, 112, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* ==========================================================================
   Wishlist Price Display
   ========================================================================== */
.fl-wishlist-price {
    font-size: 15px;
    font-weight: 700;
    color: #ed7170;
}

.fl-wishlist-price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 13px;
    margin-right: 4px;
}

.fl-wishlist-price ins {
    text-decoration: none;
}

.fl-wishlist-price .woocommerce-Price-amount {
    font-weight: inherit;
}

.fl-wishlist-price .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
}

/* ==========================================================================
   Empty State - Wishlist Specific
   ========================================================================== */
.fl-wishlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    min-height: 300px;
}

.fl-wishlist-empty-icon {
    width: 80px;
    height: 80px;
    background: #fdeceb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.fl-wishlist-empty-icon svg {
    width: 40px;
    height: 40px;
    color: #ed7170;
}

.fl-wishlist-empty h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.fl-wishlist-empty p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    max-width: 360px;
}

/* Primary Button - new color */
.fl-wishlist-empty .fl-btn-primary,
.fl-wishlist-section .fl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    background: #ed7170;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.fl-wishlist-empty .fl-btn-primary:hover,
.fl-wishlist-section .fl-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(237, 113, 112, 0.4);
    background: #e05a59;
    color: white;
}

.fl-wishlist-empty .fl-btn-primary svg,
.fl-wishlist-section .fl-btn-primary svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Wishlist Button Overrides - collection grid
   ========================================================================== */
.fl-wishlist-section .fl-collection-btn {
    background: #ed7170;
    color: white;
}

.fl-wishlist-section .fl-collection-btn:hover {
    background: #e05a59;
    box-shadow: 0 2px 8px rgba(237, 113, 112, 0.4);
}

/* ==========================================================================
   Wishlist Badge (item count)
   ========================================================================== */
.fl-wishlist-badge {
    background: #ed7170;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* ==========================================================================
   CTA tile in grid
   ========================================================================== */
.fl-wishlist-section .fl-collection-cta:hover {
    border-color: #ed7170;
}

.fl-wishlist-section .fl-collection-cta:hover .fl-cta-inner {
    color: #ed7170;
}

.fl-wishlist-section .fl-collection-cta:hover .fl-cta-icon {
    background: #fdeceb;
}

/* ==========================================================================
   Animation for item removal
   ========================================================================== */
.fl-wishlist-item {
    transition: opacity 0.2s, transform 0.2s;
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .fl-info-box-wishlist {
        padding: 14px 16px;
    }
    
    .fl-info-box-wishlist .fl-info-box-icon {
        width: 36px;
        height: 36px;
    }
    
    .fl-info-box-wishlist .fl-info-box-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .fl-info-box-wishlist .fl-info-box-title {
        font-size: 14px;
    }
    
    .fl-info-box-wishlist .fl-info-box-text {
        font-size: 13px;
    }
    
    .fl-wishlist-remove {
        opacity: 1;
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   Hide YITH/TI Wishlist elements (if plugin still active)
   ========================================================================== */
.woocommerce-account .yith-wcwl-wishlist-search-form,
.woocommerce-account .wishlist-title-container,
.woocommerce-account .wishlist_table,
.woocommerce-account .yith-wcwl-share,
.woocommerce-MyAccount-content .yith-wcwl-add-to-wishlist,
.woocommerce-MyAccount-content .tinvwl-add-to-wishlist-wrap {
    display: none !important;
}
