﻿
/* Page Header */
.page-header {
    background: #ffffff;
    padding: 12rem 0 0;
    text-align: center;
    margin-bottom: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Favorites Section */
.favorites-section {
    padding: 3rem 0;
    background: #ffffff;
}

    .favorites-section .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #e5e7eb;
    }

.favorites-count {
    font-size: 1.1rem;
    color: #6b7280;
}

    .favorites-count strong {
        color: #111827;
        font-size: 1.3rem;
    }

.clear-all-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

    .clear-all-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }

/* Products Grid - Exact match to home page */
.products-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.remove-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

    .remove-favorite-btn:hover {
        transform: scale(1.1);
        background: #fee;
    }

    .remove-favorite-btn i {
        font-size: 18px;
        color: #ef4444;
    }

.stock-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.product-info {
    padding: 0 4px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.old-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.view-btn, .add-cart-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.view-btn {
    background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%);
    color: white;
}

    .view-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(42, 52, 70, 0.3);
    }

.add-cart-btn {
    background: white;
    color: #2a3446;
    border: 2px solid #2a3446;
}

    .add-cart-btn:hover {
        background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%);
        color: white;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    display: none;
}

    .empty-state.active {
        display: block;
    }

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

    .empty-icon i {
        font-size: 60px;
        color: #9ca3af;
    }

.empty-state h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.shop-btn {
    background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%);
    color: white;
    padding: 14px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

    .shop-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(42, 52, 70, 0.3);
    }


@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .clear-all-btn, .favorites-count {
        margin-inline: auto;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}
