/**
 * Modern Ürünler Arşiv Sayfası - Özel CSS
 * 
 * Alanya Kahve Atölyesi için profesyonel ürünler sayfası stilleri
 * Responsive, modern ve kullanıcı dostu tasarım
 * 
 * @package Alanya_Kahve
 * @version 2.0
 */

/* ==========================================================================
   Genel Ürünler Sayfası Stilleri
   ========================================================================== */

.products-archive {
    background-color: #FAFAFA;
    min-height: 100vh;
}

.products-archive .site-main {
    padding-top: 0;
    background: transparent;
}

/* ==========================================================================
   Hero Section - Kahve Temalı Gradient
   ========================================================================== */

.products-hero {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 30%, #CD853F 60%, #F4A460 100%);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: 100px 100px, 120px 120px, 80px 80px, 90px 90px;
    background-position: 0 0, 50px 50px, 20px 20px, 70px 70px;
    animation: floatPattern 30s ease-in-out infinite;
}

.products-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #FAFAFA, transparent);
}

@keyframes floatPattern {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 1;
    }
    25% { 
        transform: translateY(-15px) translateX(10px) rotate(1deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) translateX(-8px) rotate(-1deg); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-20px) translateX(5px) rotate(0.5deg); 
        opacity: 0.7;
    }
}

.products-hero-content {
    position: relative;
    z-index: 3;
    padding: 120px 0 80px;
    text-align: center;
}

/* ==========================================================================
   Hero İçerik Stilleri
   ========================================================================== */

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
    color: white;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    border-radius: 1px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Filters Section - Modern ve Temiz
   ========================================================================== */

.filters-section {
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    margin: -60px auto 60px;
    position: relative;
    z-index: 10;
    padding: 40px;
    max-width: 1200px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.filter-label i {
    color: #8B4513;
    font-size: 16px;
}

.filter-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    font-size: 15px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238B4513' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
    font-weight: 500;
    color: #374151;
}

.filter-select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
    transform: translateY(-1px);
}

.filter-select:hover {
    border-color: #D2691E;
}

.filter-button {
    width: 100%;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.4);
}

.filter-button:hover::before {
    left: 100%;
}

.filter-button:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   Products Grid - Modern Card Layout
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.02), rgba(210, 105, 30, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 24px;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
    opacity: 1;
}

/* ==========================================================================
   Product Image Area
   ========================================================================== */

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(1deg);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-badge i {
    font-size: 12px;
}

/* ==========================================================================
   Product Content Area
   ========================================================================== */

.product-content {
    padding: 30px 25px;
    position: relative;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.product-category {
    background: rgba(139, 69, 19, 0.08);
    color: #8B4513;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.product-category:hover {
    background: rgba(139, 69, 19, 0.15);
    transform: translateY(-1px);
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.product-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #D2691E);
    transition: width 0.3s ease;
}

.product-title a:hover {
    color: #8B4513;
}

.product-title a:hover::after {
    width: 100%;
}

.product-description {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #8B4513;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Product Actions
   ========================================================================== */

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.product-link {
    color: #8B4513;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    letter-spacing: 0.3px;
}

.product-link:hover {
    gap: 15px;
    color: #D2691E;
}

.product-link i {
    transition: transform 0.3s ease;
}

.product-link:hover i {
    transform: translateX(3px);
}

.product-cart-btn {
    width: 50px;
    height: 50px;
    background: rgba(139, 69, 19, 0.08);
    color: #8B4513;
    border: 2px solid rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.product-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.product-cart-btn:hover {
    transform: scale(1.1);
    border-color: #8B4513;
}

.product-cart-btn:hover::before {
    width: 100%;
    height: 100%;
}

.product-cart-btn:hover {
    color: white;
}

.product-cart-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   No Products State
   ========================================================================== */

.no-products {
    text-align: center;
    padding: 100px 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.no-products-icon {
    font-size: 5rem;
    color: #D1D5DB;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.no-products-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 15px;
}

.no-products-text {
    color: #6B7280;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.no-products-btn {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    padding: 16px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.no-products-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.4);
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */

.pagination-container {
    margin-top: 80px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.pagination a,
.pagination span {
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6B7280;
    font-size: 15px;
    min-width: 45px;
    text-align: center;
}

.pagination a:hover {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .hero-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
        margin-top: 40px;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 0;
    }
    
    .filters-section {
        margin: -40px 20px 40px;
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        border-radius: 20px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-content {
        padding: 25px 20px;
    }
}

@media (max-width: 640px) {
    .products-hero-content {
        padding: 100px 0 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-badge {
        font-size: 13px;
        padding: 8px 18px;
    }
    
    .filters-section {
        margin: -30px 15px 30px;
        padding: 20px 15px;
    }
    
    .filter-button {
        margin-top: 15px;
        font-size: 14px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .no-products {
        padding: 60px 20px;
    }
    
    .no-products-icon {
        font-size: 4rem;
    }
    
    .no-products-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 14px;
        font-size: 14px;
    }
}
