/* --- All Products / Collection / Search / Offer Page Design --- */

/* Page Container */
.products-page-container {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.header-content {
    flex: 1;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Sort Container */
.sort-container {
    position: relative;
    min-width: 200px;
}

.sort-select {
    appearance: none;
    width: 100%;
    padding: 12px 20px;
    padding-left: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #FF9F43;
    box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.1);
}

.sort-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #1e293b;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    border-color: #FF9F43;
    color: #FF9F43;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 159, 67, 0.15);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Empty State */
.empty-favourite {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.empty-description {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn-return-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FF9F43;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-return-home:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 159, 67, 0.2);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .sort-container {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* Image Aspect Ratio Fix */
/*.card-img-wrapper {*/
/*    padding-top: 133.33% !important;*/
/*}*/

/*.card-img-top {*/
/*    object-fit: cover !important;*/
/*}*/