/* Products Page Specific Styles */
/* TechOPC Ürünler Sayfası Stilleri */

/* Category Sections */
.category-section {
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    position: relative;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.category-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

/* Product Cards */
.product-card {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-badge:not(.new):not(.spare) {
    background-color: var(--secondary-color);
    color: var(--background-dark);
}

.product-badge.new {
    background-color: var(--success-color);
    color: var(--background-dark);
}

.product-badge.spare {
    background-color: var(--warning-color);
    color: var(--background-dark);
}

/* Product Image */
.product-image {
    height: 220px;
    overflow: hidden;
    background-color: var(--background-light);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: var(--spacing-xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: clamp(1.5rem, 3vw, 2rem); /* Diğer sayfalarla eşit boyut */
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    flex-grow: 1;
    font-size: 1.125rem; /* Daha büyük açıklama metni */
}

/* Product Specs */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.spec {
    background-color: var(--background-light);
    color: var(--text-muted);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Product Price */
.product-price-range {
    margin-bottom: var(--spacing-lg);
}

.price {
    font-size: 1.5rem; /* Daha büyük fiyat yazısı */
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Product Actions */
.product-actions {
    margin-top: auto;
}

.product-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem; /* Daha büyük buton yazısı */
    padding: var(--spacing-md) var(--spacing-lg); /* Daha büyük buton padding */
}

/* Product Advantages */
.product-advantages {
    background-color: var(--background-medium);
    padding: var(--spacing-3xl) 0;
}

.product-advantages h2 {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.advantage-card {
    background-color: var(--background-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-medium);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.advantage-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-lg);
}

.advantage-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1.25rem;
}

.advantage-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Adjustments for Products */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .product-card {
        margin-bottom: var(--spacing-md);
    }
    
    .product-info {
        padding: var(--spacing-lg);
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .advantage-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: var(--spacing-md);
    }
    
    .product-specs {
        gap: var(--spacing-xs);
    }
    
    .spec {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .advantage-icon {
        font-size: 2.5rem;
    }
}

/* Special styling for different categories */
#ikinci-el {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, transparent 100%);
}

#sifir {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03) 0%, transparent 100%);
}

#yedek-parca {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 100%);
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out 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; }

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .product-card {
        animation: none;
    }
}
