/* ═══════════════════════════════════════════════
   PFC FAVOURITES — favourite.css
   Covers: heart button states, navbar badge,
           favourites page grid + empty state.
   No conflicts with product-card.css
   ═══════════════════════════════════════════════ */

/* ─── HEART BUTTON ─────────────────────────────
   Base styles already in product-card.css.
   Only add states that favourite.js controls.
   ─────────────────────────────────────────────── */

.pfc-fav-btn.pfc-fav-loading {
    pointer-events: none;
    opacity: 0.7;
}

.pfc-fav-btn.pfc-fav-loading svg {
    animation: pfc-fav-pulse 0.6s ease-in-out infinite;
}

@keyframes pfc-fav-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ─── NAVBAR FAVOURITE ICON BADGE ──────────────
   Add this wrapper around your heart icon in header.
   <span class="pfc-fav-nav-wrap">
       <svg>...</svg>
       <span class="pfc-fav-nav-count"></span>
   </span>
   ─────────────────────────────────────────────── */

.pfc-fav-nav-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pfc-fav-nav-count {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 7px;
    height: 14px;
    background: #1e1610;
    color: #f5ead8;
    font-size: 8px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.pfc-fav-nav-count.pfc-fav-count-visible {
    opacity: 1;
    transform: scale(1);
}

/* ─── FAVOURITES PAGE ───────────────────────────
   Page uses body class .pfc-favourites-page
   ─────────────────────────────────────────────── */

.pfc-favourites-page .pfc-fav-page-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 60px 80px;
}

.pfc-fav-page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1e1610;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.pfc-fav-page-subtitle {
    margin-top: 12px !important;
    font-size: 14px;
    color: #5f5549;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Grid — matches .products grid in product-card.css */
#pfc-fav-grid {
    margin: 50px 0px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
}


/* Each item wraps the existing pfc-card */
.pfc-fav-item {
    list-style: none;
}

/* ─── EMPTY STATE ───────────────────────────────  */

#pfc-fav-empty {
    display: none;
    text-align: center;
    padding: 80px 24px;
}

.pfc-fav-empty-icon {
    margin: 0 auto 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f5ead8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfc-fav-empty-icon svg {
    width: 28px;
    height: 28px;
}

.pfc-fav-empty-icon .pfc-heart-path {
    fill: none;
    stroke: #b08060;
    stroke-width: 1.8;
}

.pfc-fav-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e1610;
    margin-bottom: 8px !important;
}

.pfc-fav-empty-text {
    font-size: 13px;
    color: #9a8878;
    font-weight: 300;
    margin-bottom: 28px !important;
}

.pfc-fav-empty-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #1e1610;
    color: #f5ead8;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.pfc-fav-empty-btn:hover {
    background: #2e2418;
    transform: scale(1.03);
    color: #f5ead8;
    text-decoration: none;
}




@media (max-width: 1199px) {
    #pfc-fav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 991px) {
    .pfc-favourites-page .pfc-fav-page-wrap {
        padding: 30px 20px 60px;
    }

    #pfc-fav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin: 40px 0px;
    }
}

@media (max-width: 768px) {
    .pfc-favourites-page .pfc-fav-page-wrap {
        padding: 24px 16px 50px;
    }

    .pfc-fav-page-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .pfc-fav-page-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    #pfc-fav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 30px 0px;
    }

    #pfc-fav-empty {
        padding: 60px 16px;
    }

    .pfc-fav-empty-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .pfc-fav-empty-icon svg {
        width: 24px;
        height: 24px;
    }

    .pfc-fav-empty-title {
        font-size: 18px;
    }

    .pfc-fav-empty-text {
        font-size: 12px;
        margin-bottom: 24px !important;
    }
}

@media (max-width: 480px) {
    .pfc-favourites-page .pfc-fav-page-wrap {
        padding: 20px 12px 40px;
    }

    .pfc-fav-page-title {
        font-size: 22px;
    }

    #pfc-fav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 20px 0px;
    }

    .pfc-fav-empty-btn {
        padding: 12px 28px;
        font-size: 12px;
    }
}