/* Products Page Specific Styles */

/* Products Hero Section */
.products-hero {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: linear-gradient(135deg, #ffd700, #00bfff);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.products-hero .hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.products-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.products-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb span {
    opacity: 0.6;
}

/* Filter Section */
.filter-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background: #ff1493;
    color: white;
    border-color: #ff1493;
}

.results-count {
    color: #666;
    font-size: 0.9rem;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-dropdown select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #ff1493;
    color: white;
    border-color: #ff1493;
}

/* Products Main Section */
.products-main {
    padding: 3rem 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.filter-group h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    position: relative;
}

.filter-option input {
    margin-right: 0.8rem;
    cursor: pointer;
}

.checkmark {
    position: relative;
    margin-right: 0.8rem;
}

.filter-option:hover {
    color: #ff1493;
}

.price-range {
    padding: 1rem 0;
}

.price-slider {
    width: 100%;
    height: 6px;
    background: #ddd;
    outline: none;
    border-radius: 3px;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ff1493;
    border-radius: 50%;
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ff1493;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.clear-filters {
    width: 100%;
    background: #ff1493;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.clear-filters:hover {
    background: #e91e63;
}

/* Products Content */
.products-content {
    min-height: 600px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border-radius: 15px 15px 0 0;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.quick-view,
.add-to-cart {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-view {
    background: white;
    color: #333;
}

.add-to-cart {
    background: #ff1493;
    color: white;
}

.quick-view:hover,
.add-to-cart:hover {
    transform: translateY(-2px);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.sale {
    background: #ff4444;
    color: white;
}

.badge.new {
    background: #4CAF50;
    color: white;
}

.badge.bestseller {
    background: #ff9800;
    color: white;
}

.badge.premium {
    background: #9c27b0;
    color: white;
}

.badge.limited {
    background: #607d8b;
    color: white;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: auto;
}

.product-info h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-category {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-rating {
    display: none;
}

.product-price {
    display: none;
}

.service-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* Call-to-action buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #20c05a;
    transform: translateY(-2px);
}

.email-btn {
    background: #007bff;
    color: white;
}

.email-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: #ff1493;
    color: white;
    border-color: #ff1493;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: #999;
    margin: 0 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 4rem 0;
    margin: 4rem 0 0;
}

.newsletter-content {
    text-align: center;
    color: white;
}

.newsletter-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 25px;
    background: #ff1493;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #e91e63;
}

/* Additional Gradient Classes */
.gradient-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-teal { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
.gradient-red { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.gradient-indigo { background: linear-gradient(135deg, #3742fa, #2f3542); }
.gradient-cyan { background: linear-gradient(135deg, #0abde3, #006ba6); }
.gradient-lime { background: linear-gradient(135deg, #7bed9f, #5f27cd); }
.gradient-rose { background: linear-gradient(135deg, #ff9ff3, #f368e0); }

/* Mobile Responsive */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filters-sidebar {
        position: static;
        order: -1;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-left,
    .filter-right {
        justify-content: space-between;
    }
    
    .filters-sidebar {
        padding: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-hero {
        padding: 4rem 0 3rem;
    }
    
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .image-placeholder {
        height: 200px;
        font-size: 2rem;
    }
    
    .filter-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* List View Styles */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.products-grid.list-view .product-item {
    display: flex;
    align-items: center;
}

.products-grid.list-view .product-image {
    width: 200px;
    flex-shrink: 0;
}

.products-grid.list-view .image-placeholder {
    height: 150px;
    border-radius: 15px 0 0 15px;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.products-grid.list-view .product-details {
    flex: 1;
}

.products-grid.list-view .product-price {
    flex-direction: column;
    align-items: end;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}