/* ===========================================
   Wishlist — Heart Button on Service Cards
   =========================================== */

.wishlist-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wishlist-heart-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.wishlist-heart-btn:active {
    transform: scale(0.95);
}

.wishlist-heart-btn:focus-visible {
    outline: 2px solid #e63946;
    outline-offset: 2px;
}

.wishlist-heart-icon {
    font-size: 20px;
    color: #555;
    transition: color 0.2s ease;
    pointer-events: none; /* clicks bubble to the button itself */
    line-height: 1;
}

/* Active state — service is in wishlist (toggled by Phase 3 JS) */
.wishlist-heart-btn.is-active .wishlist-heart-icon,
.wishlist-heart-btn.is-active .wishlist-heart-icon.fas {
    color: #5b6ef5;
}

/* ===========================================
   Wishlist — Gallery variant (service detail page)
   =========================================== */

.wishlist-heart-btn--gallery {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
}

.wishlist-heart-btn--gallery .wishlist-heart-icon {
    font-size: 22px;
}

/* ===== Wishlist Page ===== */
.wishlist-page {
    padding: 40px 0 60px;
}

.wishlist-page__header {
    text-align: center;
    margin-bottom: 32px;
}

.wishlist-page__title {
    font-size: 32px;
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.wishlist-page__title-icon {
    color: #5b6ef5;
}

.wishlist-page__subtitle {
    color: #666;
    margin: 0 0 8px;
}

.wishlist-page__count {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Filters */
.wishlist-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.wishlist-filter-btn {
    padding: 10px 18px;
    border: 1.5px solid #ddd;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    min-height: 44px;
}

.wishlist-filter-btn:hover {
    border-color: #e63946;
    color: #e63946;
}

.wishlist-filter-btn.is-active {
    background: #5b6ef5;
    border-color: #5b6ef5;
    color: #fff;
}

/* Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Card */
.wishlist-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wishlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wishlist-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.wishlist-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f3f3;
}

.wishlist-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wishlist-card__body {
    padding: 14px 16px 18px;
}

.wishlist-card__title {
    font-size: 16px;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-card__price {
    margin: 0;
    color: #e63946;
    font-weight: 600;
    font-size: 15px;
}

/* Loading */
.wishlist-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.wishlist-loading .fa-spinner {
    margin-right: 8px;
    color: #e63946;
}

/* Empty state */
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
}

.wishlist-empty__icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.wishlist-empty__title {
    font-size: 24px;
    margin: 0 0 8px;
    color: #333;
}

.wishlist-empty__text {
    color: #666;
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile */
@media (max-width: 600px) {
    .wishlist-page__title { font-size: 24px; }
    .wishlist-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .wishlist-card__body { padding: 10px 12px 14px; }
    .wishlist-card__title { font-size: 14px; }
}
