/* ========== urunler.css ========== */
/* Ürün Listeleme Sayfası Stilleri */

.urunler-page {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: 600px;
}

/* ===== HEADER ===== */
.urunler-header {
    text-align: center;
    margin-bottom: 40px;
}

.urunler-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.urunler-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ff6b6b;
}

.urunler-search-info {
    font-size: 16px;
    color: #ff6b6b;
    margin-bottom: 5px;
    font-weight: 500;
}

.urunler-count {
    color: #666;
    font-size: 14px;
}

.urunler-count strong {
    color: #ff6b6b;
    font-weight: 600;
}

/* ===== LAYOUT ===== */
.urunler-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ===== FİLTRE PANELİ ===== */
.urunler-filters {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
    border: 1px solid #f0f0f0;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.filters-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-header h3 i {
    color: #ff6b6b;
}

.filters-clear {
    color: #ff6b6b;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filters-clear:hover {
    color: #ff5252;
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
}

.filter-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 14px;
    background: #ff6b6b;
    border-radius: 3px;
}

/* Select Kutusu */
.filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

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

.filter-select:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

/* Radio Group */
.filter-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.filter-radio:hover {
    color: #ff6b6b;
}

.filter-radio input[type="radio"] {
    accent-color: #ff6b6b;
    width: 16px;
    height: 16px;
}

/* ===== ÜRÜN TOOLBAR ===== */
.urunler-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.toolbar-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-sort label {
    color: #666;
    font-size: 14px;
}

.sort-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.sort-select:hover {
    border-color: #ff6b6b;
}

.toolbar-view {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.view-btn.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/* ===== ÜRÜN GRID ===== */
.urunler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Liste Görünümü */
.urunler-grid.list-view {
    grid-template-columns: 1fr;
}

.urunler-grid.list-view .urun-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    padding: 20px;
}

.urunler-grid.list-view .urun-card-image {
    height: 150px;
    width: 200px;
}

.urunler-grid.list-view .urun-card-info {
    padding: 0;
    border-top: none;
}

.urunler-grid.list-view .urun-card-actions {
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #f0f0f0;
    padding-left: 20px;
}

/* Ürün Kartı - FLEXBOX ile düzenlendi */
.urun-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%; /* Tüm kartlar eşit yükseklikte */
}

.urun-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.15);
    border-color: #ff6b6b;
}

.urun-card-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #ff6b6b;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.badge-out {
    background: #dc3545;
}

.urun-card-link {
    text-decoration: none;
    color: #333;
    display: block;
    flex: 1; /* Link içeriği esneyebilir */
}

.urun-card-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.urun-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.urun-card:hover .urun-card-image img {
    transform: scale(1.08);
}

/* Araç Marka Logosu - Sol üst köşede */
.urun-card-arac-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.urun-card:hover .urun-card-arac-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.urun-card-arac-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.urun-card-info {
    padding: 18px 15px 15px;
}

.urun-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.urun-card-brand {
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 500;
}

.urun-card-code {
    color: #999;
    font-size: 11px;
}

.urun-card-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
}

.urun-card-vehicle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 12px;
    margin-bottom: 12px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 6px;
}

.urun-card-vehicle i {
    color: #ff6b6b;
    font-size: 12px;
}

/* Fiyat alanı düzenlemesi */
.urun-card-price {
    margin-top: auto; /* Üstteki içeriğe göre esner */
    padding-top: 10px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
    white-space: nowrap;
}

.price-sor {
    font-size: 14px;
    color: #ff9800;
    font-weight: 500;
}

.price-info {
    font-size: 11px;
    color: #999;
    font-weight: normal;
    white-space: nowrap;
}

/* Sepete ekle alanı - HER ZAMAN EN ALTA SABİT */
.urun-card-actions {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
    margin-top: auto; /* Bu kritik - kartın en altına iter */
    background: #fff; /* Arka plan rengi */
    width: 100%;
}

.btn-add-to-cart,
.btn-inquire,
.btn-out-of-stock {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart {
    background: #ff6b6b;
    color: #fff;
}

.btn-add-to-cart:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255,107,107,0.3);
}

.btn-add-to-cart i {
    font-size: 14px;
}

.btn-inquire {
    background: #ff9800;
    color: #fff;
}

.btn-inquire:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255,152,0,0.3);
}

.btn-out-of-stock {
    background: #999;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-favorite {
    width: 38px;
    height: 38px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Buton küçülmesin */
}

.btn-favorite:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.btn-favorite.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.btn-favorite.active i {
    font-weight: 900;
}

/* ===== SAYFALAMA ===== */
.urunler-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 22px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255,107,107,0.2);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.pagination-number.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    cursor: default;
}

.pagination-dots {
    color: #666;
    font-size: 12px;
    padding: 0 5px;
}

/* ===== BOŞ SAYFA ===== */
.urunler-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.urunler-empty i {
    font-size: 80px;
    color: #ff6b6b;
    margin-bottom: 20px;
    opacity: 0.5;
}

.urunler-empty h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.urunler-empty p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.urunler-empty .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.urunler-empty .btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

/* ===== TOAST BİLDİRİMLERİ ===== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.success i {
    color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.error i {
    color: #f44336;
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast.warning i {
    color: #ff9800;
}

.toast.info {
    border-left-color: #2196f3;
}

.toast.info i {
    color: #2196f3;
}

.toast-icon {
    font-size: 24px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    color: #333;
}

.toast-message {
    font-size: 13px;
    color: #666;
}

.toast-close {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: #ff6b6b;
}

/* ===== RESPONSIVE ===== */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .urunler-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .urunler-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
    
    .urunler-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .urunler-layout {
        grid-template-columns: 1fr;
    }
    
    .urunler-filters {
        position: static;
        margin-bottom: 20px;
    }
    
    .urunler-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .urunler-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .toolbar-sort {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .toolbar-view {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Ürün Kartı Mobil Düzenlemeleri - Tüm kartlar için ortak */
    .urun-card-image {
        height: 150px;
    }
    
    .urun-card-arac-logo {
        width: 40px;
        height: 40px;
        top: 5px;
        left: 5px;
    }
    
    .urun-card-title {
        font-size: 14px;
        height: 38px;
        margin-bottom: 8px;
    }
    
    .urun-card-meta {
        margin-bottom: 5px;
    }
    
    .urun-card-brand {
        font-size: 12px;
    }
    
    .urun-card-code {
        font-size: 10px;
    }
    
    .price {
        font-size: 15px;
    }
    
    .btn-add-to-cart span,
    .btn-inquire span,
    .btn-out-of-stock span {
        display: none;
    }
    
    .btn-add-to-cart i,
    .btn-inquire i,
    .btn-out-of-stock i {
        font-size: 16px;
    }
    
    .btn-favorite {
        width: 36px;
        height: 36px;
    }
    
    /* Liste Görünümü */
    .urunler-grid.list-view .urun-card {
        grid-template-columns: 120px 1fr;
        padding: 15px;
    }
    
    .urunler-grid.list-view .urun-card-image {
        width: 120px;
        height: 120px;
    }
    
    .urunler-grid.list-view .urun-card-actions {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 15px;
    }
    
    /* Sayfalama */
    .pagination-prev,
    .pagination-next {
        padding: 6px 14px;
        font-size: 10px;
    }
    
    .pagination-number {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .urunler-grid {
        grid-template-columns: 1fr;
    }
    
    .urun-card-image {
        height: 180px;
    }
    
    .btn-add-to-cart span,
    .btn-inquire span,
    .btn-out-of-stock span {
        display: inline;
        font-size: 12px;
    }
    
    .pagination-numbers {
        gap: 3px;
    }
    
    .pagination-number {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .toast {
        min-width: 250px;
        max-width: 300px;
    }
}

/* ===== ÖNE ÇIKAN ÜRÜNLER - SADECE GRID YAPISI ===== */
.one-cikan-section .urun-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Tablet için 3 sütun */
@media (max-width: 992px) {
    .one-cikan-section .urun-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobil için 2 sütun - Diğer stilleri ana media'dan alıyor */
@media (max-width: 768px) {
    .one-cikan-section .urun-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Çok küçük telefonlar için 1 sütun */
@media (max-width: 480px) {
    .one-cikan-section .urun-grid {
        grid-template-columns: 1fr;
    }
}