
/* =====================================
   FAVORITES V7.1 - COMPACT SVG GRID
   ===================================== */

#favorites-app {
    width: 100%;
    margin: 24px 0;
    font-family: inherit;
    color: inherit;
}


/* SEARCH BAR */

#favorites-app #fav-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 0 0 14px;
    background: transparent;
    color: inherit;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9em;
}

#favorites-app #fav-search::placeholder {
    color: inherit;
    opacity: 0.5;
}

#favorites-app #fav-search:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/* CATEGORY FILTER */

#favorites-app #fav-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

#favorites-app .fav-filter {
    padding: 6px 14px;
    background: transparent;
    color: inherit;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 30px;
    font: inherit;
    font-size: 0.8em;
    cursor: pointer;
    transition: background 0.2s;
}

#favorites-app .fav-filter:hover {
    background: rgba(128, 128, 128, 0.12);
}

#favorites-app .fav-filter.active {
    background: rgba(128, 128, 128, 0.25);
    border-color: currentColor;
    font-weight: bold;
}


/* PRODUCT COUNT */

#favorites-app #fav-count {
    font-size: 0.75em;
    opacity: 0.65;
    margin: 12px 0 16px;
}


/* MAIN GRID */

#favorites-app #fav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}


/* PRODUCT CARD */

#favorites-app .fav-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.04);
    transition: background 0.2s, border-color 0.2s;
}

#favorites-app .fav-card:hover {
    background: rgba(128, 128, 128, 0.09);
    border-color: rgba(128, 128, 128, 0.6);
}


/* PRODUCT HEADER */

#favorites-app .fav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}


/* SVG ICON */

#favorites-app .fav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: rgba(128, 128, 128, 0.12);
    border-radius: 10px;
    color: inherit;
}

#favorites-app .fav-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    max-width: 100%;
    color: inherit;
}


/* PRODUCT HEADING */

#favorites-app .fav-heading {
    flex: 1;
    min-width: 0;
}

#favorites-app .fav-category {
    display: block;
    font-size: 0.75em;
    line-height: 1.3;
    opacity: 0.65;
    margin: 0 0 3px;
    overflow-wrap: anywhere;
}

#favorites-app .fav-card h3 {
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}


/* PRODUCT DESCRIPTION */

#favorites-app .fav-notes {
    font-size: 0.85em;
    line-height: 1.6;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}


/* LINKS CONTAINER */

#favorites-app .fav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}


/* LINK BUTTONS */

#favorites-app .fav-links a {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: 6px 10px;
    margin: 0;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 6px;
    font-size: 0.75em;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background 0.2s, border-color 0.2s;
}

#favorites-app .fav-links a:hover {
    background: rgba(128, 128, 128, 0.15);
    border-color: currentColor;
}

#favorites-app .fav-shop-link {
    background: rgba(128, 128, 128, 0.12);
    font-weight: 600;
}

#favorites-app .fav-links a:focus-visible,
#favorites-app .fav-filter:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/* EMPTY STATE */

#favorites-app .fav-empty {
    grid-column: 1 / -1;
    padding: 24px 0;
    text-align: center;
    opacity: 0.7;
}


/* MOBILE RESPONSIVE */

@media (max-width: 600px) {

    #favorites-app #fav-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #favorites-app .fav-card {
        padding: 14px;
    }

    #favorites-app .fav-icon {
        width: 42px;
        height: 42px;
    }

    #favorites-app .fav-icon svg {
        width: 22px;
        height: 22px;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    #favorites-app .fav-card,
    #favorites-app .fav-filter,
    #favorites-app .fav-links a {
        transition: none;
    }

}
