/**
 * File Name: frontend-wishlist-page.css
 * File Location: /assets/css/frontend-wishlist-page.css
 *
 * Purpose:
 * Styles the DAF Marketplace Wishlist page only. Controls compact wishlist hero,
 * wishlist action buttons, empty state, and 4-products-per-row grid override.
 *
 * Linked Files:
 * - /includes/frontend/class-frontend-wishlist-page.php
 * - /assets/js/frontend-wishlist-page.js
 * - /assets/css/frontend-product-loop.css
 * - /assets/css/frontend-marketplace.css
 */

/* ==========================================================================
   DAF Wishlist Page - Compact Hero
   ========================================================================== */

body.daf-wishlist-page-active .daf-wishlist-hero {
    padding: 48px 22px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

body.daf-wishlist-page-active .daf-wishlist-hero h1 {
    margin: 0 0 14px 0 !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}

body.daf-wishlist-page-active .daf-wishlist-hero .daf-result-count {
    margin: 0 !important;
    font-size: 14px !important;
}

/* ==========================================================================
   DAF Wishlist Page - Hero Action Buttons
   ========================================================================== */

body.daf-wishlist-page-active .daf-wishlist-hero-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

body.daf-wishlist-page-active .daf-wishlist-action-btn {
    height: 40px !important;
    padding: 0 18px !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

body.daf-wishlist-page-active .daf-wishlist-action-btn:hover {
    transform: translateY(-1px) !important;
    opacity: 0.92 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

body.daf-wishlist-page-active .daf-wishlist-add-cart-btn {
    background: #8cc63f !important;
}

body.daf-wishlist-page-active .daf-wishlist-clear-btn {
    background: #ef4444 !important;
}

body.daf-wishlist-page-active .daf-wishlist-back-shop-btn {
    background: #0f172a !important;
}

body.daf-wishlist-page-active .daf-wishlist-action-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ==========================================================================
   DAF Wishlist Page - Force 4 Products Per Row
   ========================================================================== */

body.daf-wishlist-page-active #daf-marketplace-wrapper .daf-elite-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

body.daf-wishlist-page-active #daf-marketplace-wrapper .daf-elite-card {
    min-width: 0 !important;
    width: 100% !important;
}

body.daf-wishlist-page-active #daf-marketplace-wrapper .daf-card-title,
body.daf-wishlist-page-active #daf-marketplace-wrapper .daf-card-title a {
    min-width: 0 !important;
}

body.daf-wishlist-page-active #daf-marketplace-wrapper .daf-action-group {
    flex-shrink: 0 !important;
}

/* ==========================================================================
   DAF Wishlist Page - Empty State
   ========================================================================== */

body.daf-wishlist-page-active .daf-wl-empty-state {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 80px 20px !important;
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 16px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

body.daf-wishlist-page-active .daf-wl-empty-state h3 {
    margin: 0 0 10px 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

body.daf-wishlist-page-active .daf-wl-empty-state p {
    margin: 0 0 20px 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
}

body.daf-wishlist-page-active .daf-wl-empty-state a {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 11px 22px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    display: inline-flex !important;
}

/* ==========================================================================
   DAF Wishlist Page - Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    body.daf-wishlist-page-active #daf-marketplace-wrapper .daf-elite-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body.daf-wishlist-page-active .daf-wishlist-hero {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 36px 20px !important;
    }

    body.daf-wishlist-page-active .daf-wishlist-hero-actions {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 768px) {
    body.daf-wishlist-page-active #daf-marketplace-wrapper .daf-elite-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    body.daf-wishlist-page-active .daf-wishlist-action-btn {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    body.daf-wishlist-page-active #daf-marketplace-wrapper .daf-elite-grid {
        grid-template-columns: 1fr !important;
    }
}