/* Products page specific styles */

.products-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.products-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.products-hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.products-content {
    padding: 4rem 0;
}

/* Product Filters */
.products-filters {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.product-card {
    background-color: var(--background);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: fit-content;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.product-badge:nth-child(1) {
    background-color: #10b981; /* Editor's Choice - Green */
}

.product-card:nth-child(2) .product-badge {
    background-color: #3b82f6; /* Best Value - Blue */
}

.product-card:nth-child(3) .product-badge {
    background-color: #f59e0b; /* Popular - Orange */
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 2rem;
}

.product-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stars {
    color: var(--accent-color);
    font-size: 1.125rem;
}

.rating-score {
    font-weight: 600;
    color: var(--text-primary);
}

.reviews-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.product-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background-color: var(--background-alt);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Featured Categories */
.featured-categories {
    background-color: var(--background-alt);
    padding: 4rem 0;
}

.featured-categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-count {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Product Detail Styles */
.product-detail-hero {
    padding: 8rem 0 4rem;
    background-color: var(--background-alt);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    margin-bottom: 2rem;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-info .product-category {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-alt);
    border-radius: 1rem;
}

.rating-display {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.rating-stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.875rem;
}

.rating-details {
    flex: 1;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.price-section {
    background-color: var(--background);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.price-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-details {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .products-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .products-filters {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .category-icon i {
        font-size: 1.5rem;
    }
    
    .product-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .overall-rating {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-breakdown {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-hero {
        padding: 6rem 0 3rem;
    }
    
    .products-hero-content h1 {
        font-size: 2rem;
    }
    
    .products-hero-content p {
        font-size: 1rem;
    }
    
    .products-filters {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-content h3 {
        font-size: 1.25rem;
    }
    
    .product-features {
        gap: 0.25rem;
    }
    
    .feature-tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
}