/* ==========================================================================
   Ürünler Ortak Stiller - Modern Premium Tasarım
   ========================================================================== */

.urunler-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* --- Filtreleme Bölümü --- */
.filters-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8ecf1;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.filter-group select,
.filter-group input {
    padding: 0.7rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #334155;
    transition: all 0.2s ease;
    background-color: #fafbfc;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background-color: #fff;
}

.search-box {
    grid-column: 1 / -1;
}

.search-box input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    padding-left: 2.75rem;
}

/* Marka Filtre Butonları */
.marka-filtreleri {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.marka-filtre-btn {
    padding: 0.5rem 1.1rem;
    border: 1.5px solid #e2e8f0;
    background: #fafbfc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.01em;
}

.marka-filtre-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.marka-filtre-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25);
}

/* --- Ürün Kartı --- */
.urun-kart {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border: 1.5px solid #edf0f4;
    position: relative;
    cursor: pointer;
    height: 100%;
}

.urun-kart:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: #d0d7e2;
}

.urun-kart:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Rozetler */
.urun-badge {
    position: absolute;
    top: 12px;
    z-index: 10;
    width: 52px;
    height: auto;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.urun-badge--left {
    left: 12px;
}

.urun-badge--right {
    right: 12px;
    width: 46px;
}

/* Görsel Alanı */
.urun-resim-container {
    width: 100%;
    height: 220px;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.urun-resim {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.06));
}

.urun-kart:hover .urun-resim {
    transform: scale(1.06);
}

/* Kart Bilgileri */
.urun-bilgiler {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.urun-marka {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.urun-baslik {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.urun-aciklama {
    margin: 0 0 0.75rem 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Özellik Hapları */
.urun-ozellikler {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.urun-ozellik-badge {
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    color: #4a5a7a;
    font-weight: 600;
    border: 1px solid #dde3f0;
}

/* Teknik Detaylar */
.urun-detaylar {
    font-size: 0.825rem;
    color: #475569;
    margin-bottom: 1rem;
    flex: 1;
    background: #f8fafc;
    padding: 0.875rem;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.urun-detay-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    border-bottom: 1px dotted #e8ecf1;
    padding-bottom: 0.3rem;
}

.urun-detay-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.urun-detay-label {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.8rem;
}

.urun-detay-value {
    font-weight: 600;
    color: #1e293b;
}

/* Fiyat ve Aksiyon */
.urun-fiyat-etiket {
    display: block;
    width: 100%;
    padding: 0.4rem;
    text-align: center;
    color: #1e40af;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.whatsapp-fiyat-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #25D366, #20BD5A);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.whatsapp-fiyat-btn:hover {
    background: linear-gradient(135deg, #20BD5A, #128C7E);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-fiyat-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.urun-fiyat-not {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
}

.urun-butonlar {
    margin-top: auto;
    padding: 0 1.25rem 1.25rem;
}

/* --- Yorum Özeti Bileşeni --- */
.yorum-ozeti {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}

/* Detay bağlamı: tıklanabilir link — minimum 44x44px dokunma hedefi */
a.yorum-ozeti {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

a.yorum-ozeti:hover {
    background-color: #f1f5f9;
}

a.yorum-ozeti:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Yıldızlar */
.yorum-ozeti-yildizlar {
    display: inline-flex;
    gap: 1px;
    font-size: 0.95rem;
}

.yorum-ozeti-yildizlar .yildiz {
    font-size: inherit;
    color: #d1d5db;
}

.yorum-ozeti-yildizlar .yildiz.dolu {
    color: #f59e0b;
}

/* Puan değeri */
.yorum-ozeti-puan {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-left: 0.15rem;
}

/* Yorum sayısı */
.yorum-ozeti-sayi {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Boş Durum */
.no-urun-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: #64748b;
    font-size: 1rem;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .urunler-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .marka-filtreleri {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .marka-filtre-btn {
        flex-shrink: 0;
    }

    .urun-bilgiler {
        padding: 1rem;
    }

    .urun-baslik {
        font-size: 0.95rem;
    }

    .yorum-ozeti-yildizlar {
        font-size: 0.85rem;
    }

    .yorum-ozeti-puan {
        font-size: 0.8rem;
    }

    .yorum-ozeti-sayi {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .urunler-container {
        padding: 0.75rem;
    }

    .filters-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .urun-resim-container {
        height: 180px;
    }

    .urun-resim {
        max-width: 100%;
        max-height: 100%;
    }

    .urun-kart {
        border-radius: 12px;
    }

    .yorum-ozeti {
        gap: 0.25rem;
    }

    .yorum-ozeti-yildizlar {
        font-size: 0.8rem;
    }
}
