/* Product List Page Styles */

/* Product List Header */
.product-list-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 50px 0;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-list-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #3498db;
}

.product-list-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    animation: fadeInDown 1s ease-out;
}

.product-list-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
    transform: translateY(-2px);
}

.breadcrumb .separator {
    color: #bbb;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f5f7fa;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
    margin-bottom: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.back-button:hover {
    background: #eaeff5;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-4px);
}

/* Category Filter Buttons */
.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
    animation: fadeIn 1s ease-out;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn i {
    margin-right: 8px;
    color: #3498db;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Hover effect with better visibility */
.filter-btn:hover,
.filter-btn.hover {
    background: #f5f9ff;
    border-color: #3498db;
    color: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.filter-btn:hover i,
.filter-btn.hover i {
    transform: scale(1.2);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.05);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.filter-btn:hover::before,
.filter-btn.hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.25);
}

.filter-btn.active i {
    color: white;
}

.filter-btn.active::before {
    display: none;
}

/* Package Filters */
.package-filters {
    margin: 25px 0 30px;
    padding: 20px;
    background: #f7f9fc;
    border-radius: 12px;
    border: 1px solid #edf0f7;
    animation: fadeIn 1.2s ease-out;
}

.package-filters h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.package-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
    text-decoration: none;
}

.filter-button i {
    margin-right: 6px;
    color: #3498db;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.hover {
    background: #f5f9ff;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.12);
}

.filter-button:hover i,
.filter-button.hover i {
    transform: scale(1.2);
}

.filter-button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.filter-button.active i {
    color: white;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    animation: fadeIn 1.4s ease-out;
}

.product-item {
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
    opacity: 1;
    transform: translateY(0);
}

.product-item:hover,
.product-item.hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.product-image-container {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-item:hover .product-image,
.product-item.hover .product-image {
    transform: scale(1.05);
}

/* No Image Placeholder */
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    height: 100%;
    width: 100%;
}

.no-image i {
    font-size: 4rem;
    color: #bdc3c7;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-item:hover .no-image i,
.product-item.hover .no-image i {
    color: #3498db;
    opacity: 1;
    transform: scale(1.1);
}

/* Enhanced Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-item:hover .product-overlay,
.product-item.hover .product-overlay,
.product-item.touch-hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.view-details {
    padding: 10px 20px;
    background: white;
    color: #3498db;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    font-size: 0.9rem;
}

.product-item:hover .view-details,
.product-item.hover .view-details,
.product-item.touch-hover .view-details {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.view-details:hover {
    background: #3498db;
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-item:hover .product-title,
.product-item.hover .product-title {
    color: #3498db;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.product-category {
    padding: 6px 12px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    color: #3498db;
    font-weight: 500;
    font-size: 0.85rem;
}

.product-package {
    color: #777;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-package i {
    color: #3498db;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    animation: fadeIn 1s ease-out;
}

.empty-state-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-state-text {
    color: #7f8c8d;
    max-width: 500px;
    margin: 0 auto 25px;
}

.empty-state-button {
    display: inline-block;
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-state-button:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .product-list-title {
        font-size: 2.2rem;
    }
    
    .category-filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .product-list-title {
        font-size: 2rem;
    }
    
    .product-list-subtitle {
        font-size: 1rem;
    }
    
    .category-filter-buttons {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        scrollbar-width: thin;
        scrollbar-color: #3498db #f5f7fa;
    }
    
    .category-filter-buttons::-webkit-scrollbar {
        height: 5px;
    }
    
    .category-filter-buttons::-webkit-scrollbar-track {
        background: #f5f7fa;
        border-radius: 10px;
    }
    
    .category-filter-buttons::-webkit-scrollbar-thumb {
        background: #3498db;
        border-radius: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .product-image-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-list-title {
        font-size: 1.8rem;
    }
    
    .back-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .package-filters {
        padding: 15px;
    }
    
    .package-filter-buttons {
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap;
        scrollbar-width: thin;
    }
} 