/* ExpoKategori.css */
/* PromoPazar Expo Kategori Sayfası için CSS Dosyası */

/* Ana Container */
.main-container {
    width: 100%;
    max-width: 1440px;
    margin: 3rem auto;
    padding: 0;
}

/* Kategori Container */
.kategori-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 1rem auto 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    overflow: hidden;
    margin-top: -25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-to-top-button {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8006, #ff6b6b);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}


/* Kategori Banner */
.kategori-banner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}


.banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.5s ease;
}

/* Kategori Bilgi Alanı */
.kategori-info-wrapper {
    position: relative;
    padding: 1.8rem 2.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: auto;
    height: auto;
    background-color: rgba(255, 255, 255, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23f0f0f0' fill-opacity='0.5' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 -10px 20px -10px rgba(0, 0, 0, 0.03);
}

/* Kategori İçerik */
.kategori-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    text-align:center;
}

.kategori-details {
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
}

/* Kategori Başlık */
.kategori-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #333;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    letter-spacing: -0.03em;
}

/* İstatistik Öğeleri */
.kategori-stats {
    flex-wrap: nowrap;
    gap: 0.6rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    background: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    color: #555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 128, 6, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    background-color: white;
}

.stat-item i {
    color: #ff8006;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Bölüm Başlığı */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #6B6A6A;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    padding: 0 1rem;
}

.section-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 128, 6, 0.1) 0%, rgba(255, 128, 6, 0.8) 20%, rgba(107, 106, 106, 0.8) 80%, rgba(255, 128, 6, 0.1) 100% );
    margin: 0 auto;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Tedarikçi Slider Bölümü */
.supplier-slider-section {
    margin: 2rem 0;
    width: 100%;
}

.supplier-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.supplier-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #ff8006, #ffae6d);
    border-radius: 3px;
}

/* Tedarikçi Slider */
.supplier-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none; /* Metin seçimini engelle */
    -webkit-user-select: none; /* Safari için */
    -moz-user-select: none; /* Firefox için */
    -ms-user-select: none; /* IE/Edge için */
}

.supplier-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding: 15px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    user-select: none; /* Metin seçimini engelle */
    -webkit-user-select: none; /* Safari için */
    -moz-user-select: none; /* Firefox için */
    -ms-user-select: none; /* IE/Edge için */
    cursor: grab;
    width: calc(100% + 40px); /* Scroll yatay olduğunda tam kaydırma alanı */
    will-change: transform, scroll-position; /* Performans için */
}

.supplier-slider.active {
    cursor: grabbing;
    scroll-behavior: auto;
}

.supplier-slider::-webkit-scrollbar {
    display: none;
}

.supplier-slide-item {
    flex: 0 0 auto;
    width: 220px;
    user-select: none; /* Metin seçimini engelle */
    -webkit-user-select: none; /* Safari için */
    -moz-user-select: none; /* Firefox için */
    -ms-user-select: none; /* IE/Edge için */
}

.supplier-slide-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.supplier-slide-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.supplier-slide-image {
    position: relative;
    height: 0;
    padding-bottom: 70%;
    overflow: hidden;
    background-color: #f8f8f8;
}

.supplier-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.supplier-slide-card:hover .supplier-slide-img {
    transform: scale(1.1);
}

.supplier-slide-content {
    padding: 12px;
}

.supplier-slide-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.supplier-slide-name:hover {
    color: #ff8006;
}

.supplier-slide-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #666;
}

.slide-info-item i {
    color: #ff8006;
    font-size: 0.75rem;
}

/* Gezinme Butonları */
.supplier-nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
}

.supplier-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #ff8006;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.supplier-nav-btn:hover {
    background-color: #ff8006;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 128, 6, 0.3);
}

.supplier-nav-btn.prev {
    left: 10px;
}

.supplier-nav-btn.next {
    right: 10px;
}

/* Ürünler Container */
.product-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    gap: 1.5rem;
    position: relative;
}

/* Ürünler Container */
.products-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.loading-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    min-height: 180px; /* dikey ortalama için biraz yükseklik */
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.load-more-container {
    text-align: center;
    padding: 2rem 0;
    width: 100%;
    clear: both;
}

.load-more-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8006);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

    .load-more-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(255, 140, 66, 0.2);
    }

    .load-more-button i {
        font-size: 0.9rem;
    }

.show-result {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    padding-left: 1.25rem;
}

@media (max-width: 992px) {
    .product-container {
        flex-direction: column;
        align-items: center;
    }

    .scroll-to-top-button {
        bottom: 72px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    
    .banner-img {
        object-position: center 40%;
    }
    
    .kategori-name {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 0 auto;
    }
    
    .supplier-slide-item {
        width: 160px;
    }
    
    .price-footer-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-tag {
        margin-bottom: 10px;
    }
    
    .btn-secondary {
        width: 100%;
        padding: 10px;
    }
    
    .filter-checkbox-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 0 auto;
    }
    
    .kategori-stats {
        flex-wrap: wrap;
    }
    
    .supplier-slide-item {
        width: 140px;
    }
    
    .supplier-slide-name {
        font-size: 0.85rem;
    }
    
    .slide-info-item {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    
    .kategori-name {
        font-size: 1.3rem;
    }
    
    .stat-item {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .stat-item i {
        font-size: 0.85rem;
    }
    
    .product-name {
        font-size: 0.9rem;
        min-height: 35px;
    }
    
    .supplier-link {
        font-size: 0.75rem;
    }
    
    .price-tag {
        font-size: 1.1rem;
    }
    
    .supplier-slide-item {
        width: 130px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 0 auto;
    }
}

/* btn-secondary stilini güncelleyelim */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #fff;
    color: #ff8006;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 128, 6, 0.2);
    border-color: #ff8006;
}