/* ========================================
   Products Page - Enhanced Layout
   ======================================== */

/* Enhanced Page Header */
.page-header--products {
    position: relative;
    padding: 120px 0 80px;
}

.page-header--products .page-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.page-header--products .container {
    position: relative;
    z-index: 2;
}

.page-header__subtitle-products {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    margin-top: 15px;
    opacity: 0.9;
}

/* Products Introduction */
.products-intro {
    padding: 60px 0 40px;
    background: #ffffff;
    text-align: center;
}

.products-intro p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Category Filter */
.category-filter {
    padding: 40px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 30px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-btn:hover {
    border-color: #8bc34a;
    color: #8bc34a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    border-color: #8bc34a;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(139, 195, 74, 0.3);
}

/* Products Section */
.products-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.category-title {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.category-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-title .category-count {
    font-size: 16px;
    color: #8bc34a;
    font-weight: 600;
}

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

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 195, 74, 0.2);
}

.product-card__image {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-card__image img {
    transform: scale(1.1);
}

.product-card__category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-card__content {
    padding: 25px;
}

.product-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.product-card__details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-card__details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.product-card__details li:last-child {
    margin-bottom: 0;
}

.product-card__details i {
    color: #8bc34a;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.product-card__details .detail-text {
    flex: 1;
}

.product-card__details .detail-label {
    font-weight: 600;
    color: #2c3e50;
}

/* Hidden class for filtering */
.product-card.hidden {
    display: none;
}

/* Peak Freshness Section */
.peak-freshness-products {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.peak-freshness-products__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.peak-freshness-products__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.9) 0%, rgba(124, 179, 66, 0.9) 100%);
}

.peak-freshness-products__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
}

.peak-icon-products {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.peak-icon-products svg {
    width: 70px;
    height: 70px;
    fill: #ffffff;
}

.peak-freshness-products__content h4 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.peak-freshness-products__content p {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 40px;
    opacity: 0.95;
}

.peak-btn-products {
    display: inline-block;
    padding: 16px 40px;
    background: #ffffff;
    color: #8bc34a;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.peak-btn-products:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: #7cb342;
    background: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 991px) {
    .page-header--products {
        padding: 100px 0 60px;
    }
    
    .products-intro {
        padding: 40px 0 30px;
    }
    
    .category-filter {
        padding: 30px 0;
    }
    
    .products-section {
        padding: 40px 0 60px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .peak-freshness-products {
        padding: 80px 0;
    }
    
    .peak-freshness-products__content h4 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .page-header__subtitle-products {
        font-size: 16px;
    }
    
    .products-intro p {
        font-size: 16px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title h2 {
        font-size: 28px;
    }
    
    .peak-freshness-products__content h4 {
        font-size: 28px;
    }
    
    .peak-freshness-products__content p {
        font-size: 16px;
    }
    
    .peak-freshness-products__bg {
        background-attachment: scroll;
    }
}
