/* Products Page Styles */
:root {
    --primary-color: #28a745;
    --secondary-color: #1a1a1a;
    --accent-color: #f4f4f4;
    --text-color: #333;
    --light-gray: #e0e0e0;
    --dark-gray: #666;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafafa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #28a745 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Recommended Products Section */
.recommended-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.recommended-slider {
    margin: 0 -15px;
}

.recommended-slide {
    padding: 0 15px;
    transition: var(--transition);
}

.recommended-slide .product-card {
    margin-bottom: 20px;
}

/* Slick slider overrides */
.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    user-select: none;
    touch-action: pan-y;
}

.slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.slick-slide {
    float: left;
    height: 100%;
    min-height: 1px;
    display: none;
}

.slick-slide.slick-active {
    display: block;
}

.slick-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: #ccc;
    border-radius: 50%;
    transition: var(--transition);
}

.slick-dots li.slick-active button {
    background: var(--primary-color);
}

/* Enhanced Slick Arrows */
.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.slick-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.slick-arrow:focus {
    outline: none;
}

.slick-arrow::before {
    display: none;
}

.slick-prev {
    left: -25px;
}

.slick-next {
    right: -25px;
}

/* Arrow icons */
.slick-arrow .arrow-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}

.slick-prev .arrow-icon::before,
.slick-prev .arrow-icon::after,
.slick-next .arrow-icon::before,
.slick-next .arrow-icon::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 3px;
    background: currentColor;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.slick-prev .arrow-icon::before {
    transform: rotate(-45deg);
    left: 0;
    top: 5px;
}

.slick-prev .arrow-icon::after {
    transform: rotate(45deg);
    left: 0;
    bottom: 5px;
}

.slick-next .arrow-icon::before {
    transform: rotate(45deg);
    right: 0;
    top: 5px;
}

.slick-next .arrow-icon::after {
    transform: rotate(-45deg);
    right: 0;
    bottom: 5px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .slick-arrow {
        display: none !important;
    }
}

/* Center dots */
.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: var(--light-gray);
    opacity: 1;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color);
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.products-header {
    margin-bottom: 3rem;
    text-align: center;
}

.products-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.products-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.products-grid .row {
    margin: 0 -15px;
}

.products-grid [class*="col-"] {
    padding: 0 15px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--light-gray);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.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;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view, .btn-buy {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view {
    background: white;
    color: var(--text-color);
}

.btn-view:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-buy {
    background: var(--primary-color);
    color: white;
}

.btn-buy:hover {
    background: #28a745;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-sponsor {
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-style: italic;
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
}

.no-products i {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.no-products p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination-section {
    margin-top: 4rem;
}

.pagination .page-link {
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Price Range Filter Styles */
.price-filter-group {
    margin-left: 20px;
    flex: 1;
    max-width: 300px;
}

.price-range-slider {
    background: #fff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.price-range-slider label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.slider-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    z-index: 2;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b00;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #ff8c00;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    z-index: 1;
}

.slider-range {
    position: absolute;
    height: 5px;
    background: #ff6b00;
    border-radius: 5px;
    z-index: 1;
}

.price-filter-btn {
    margin-top: 20px;
    padding: 8px 20px;
    background: #ff6b00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.price-filter-btn:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 107, 0, 0.3);
}

/* Category Filter Styles */
.category-filter-group {
    margin-bottom: 20px;
}

.category-filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    padding: 8px 15px;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.category-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #ff6b00;
    color: white;
    border-color: #ff6b00;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .recommended-slide .product-card {
        margin: 0 10px;
    }
    
    .slick-prev {
        left: 0;
    }
    
    .slick-next {
        right: 0;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        text-align: left;
    }
    
    .recommended-slider {
        margin: 0 -10px;
    }
    
    .recommended-slide {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .sort-group, .price-filter-group {
        width: 100%;
        max-width: 100%;
    }
    
    .price-filter-group {
        margin-left: 0;
    }
    
    .category-buttons {
        gap: 6px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .products-header h2 {
        font-size: 2rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-overlay {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}