* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fafafa;
    color: #2c3e50;
    line-height: 1.6;
}

.custom-filter-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    gap: 30px;
}

/* Sidebar Styles */
.custom-filter-sidebar {
    width: 280px;
    background: #fff;
    padding: 0;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    height: fit-content;
    border: 1px solid #e8e8e8;
}

.custom-filter-section {
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-filter-section:last-child {
    border-bottom: none;
}

.custom-filter-section h3 {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.custom-filter-list {
    list-style: none;
}

.custom-filter-list li {
    margin-bottom: 12px;
}

.custom-filter-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.custom-filter-list a:hover {
    color: #2c3e50;
}

.custom-filter-checkbox-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.custom-filter-checkbox-list label:hover {
    color: #2c3e50;
}

.custom-filter-checkbox-list input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Color Filters */
.custom-filter-colors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-filter-color-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.custom-filter-color-option:hover {
    color: #2c3e50;
}

.custom-filter-color-option input {
    margin-right: 10px;
    cursor: pointer;
}

.custom-filter-color-box {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    border: 1px solid #ddd;
    margin-right: 10px;
}

/* Price Filter */
.custom-filter-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-filter-price-input {
    width: 90px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.custom-filter-price-input:focus {
    outline: none;
    border-color: #2c3e50;
}

.custom-filter-btn {
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.custom-filter-btn:hover {
    background: #1a252f;
}

/* Main Content */
.custom-filter-main-content {
    flex: 1;
}

/* Toolbar */
.custom-filter-toolbar {
    background: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
    flex-wrap: wrap;
    gap: 15px;
}

.custom-filter-toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-filter-result-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.custom-filter-sort-select,
.custom-filter-items-select {
    padding: 10px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    color: #555;
    transition: all 0.2s;
    font-family: inherit;
}

.custom-filter-sort-select {
    min-width: 200px;
}

.custom-filter-items-select {
    min-width: 80px;
}

.custom-filter-sort-select:hover,
.custom-filter-items-select:hover {
    border-color: #2c3e50;
}

.custom-filter-sort-select:focus,
.custom-filter-items-select:focus {
    outline: none;
    border-color: #2c3e50;
}
.custom-filter-shipping-banner {
    background: linear-gradient(90deg, #FF6F61, #FF9A8B); /* Geçişli canlı renkler */
    color: #fff;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50px; /* Daha modern, oval yapı */
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.4);
    animation: pulse 2s infinite; /* Sürekli dikkat çeken hafif büyüme efekti */
    display: inline-block; /* Genişliği içeriğe göre ayarlar */
    font-size: 15px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* “1000 TL” kısmını özel olarak kalınlaştırmak için */
.custom-filter-shipping-banner strong {
  font-weight: 800;
}


/* Selected Filters */
.custom-filter-selected-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.custom-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.custom-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #2c3e50;
    color: #fff;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 500;
}

.custom-filter-tag-remove {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s;
}

.custom-filter-tag-remove:hover {
    transform: scale(1.2);
}

.custom-filter-clear-all {
    padding: 6px 14px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.custom-filter-clear-all:hover {
    background: #c0392b;
}

/* Products Grid */
.custom-filter-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* When no sidebar, show 4 columns */
.custom-filter-no-sidebar .custom-filter-products-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.custom-filter-product-card {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    display: block;
}

.custom-filter-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
/* Ana kapsayıcıyı düzeltin */
.custom-filter-product-badges {
    position: absolute;
    top: 5px;   /* Kartın en üstünden boşluk */
    left: 5px;  /* Sol taraftan boşluk */
    right: 5px; /* Sağ taraftan boşluk */
    display: flex;
    flex-direction: column; /* Yazı rozetlerini alt alta dizer */
    gap: 4px;
    align-items: flex-start; /* Yazıları sola yaslar */
    z-index: 10 !important; /* Ürün görselinin üstünde kalması için */
    pointer-events: none; /* Kartın tıklanabilirliğini bozmaz */
    z-index: 5 !important;
}

/* Kargo görselini sağa sabitleyin */
.custom-filter-badge-img {
    position: absolute !important;
    top: 4px;
    right: 0;
    width: 160px !important; /* Boyutu biraz büyüttük */
    height: auto !important;
    object-fit: contain;
}

/* Kartın kendisi */
.custom-filter-product-card {
    position: relative; /* Badge'lerin kart içinde kalması için şart */
    overflow: hidden;
    display: block;
}

/* Mevcut rozet stillerini koruyun */
.custom-filter-badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custom-filter-badge-new {
    background: #ff6b00; /* Canlı Turuncu */
    color: #fff;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* SYSTEM teması override */
.newPro {
    background: #ff6b00 !important; /* Canlı Turuncu */
    color: #fff !important;
    font-size: 15px !important;
    padding: 1px 8px !important;
}

@media (max-width: 768px) {
    .newPro {
        font-size: 11px !important;
        padding: 1px 5px !important;
    }
}

/* SYSTEM teması override */

.custom-filter-badge-discount {
    background: #e74c3c;
    color: #fff;
}

.custom-filter-product-image-container {
    position: relative;
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.custom-filter-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

/* Sadece Telefon/Mobil Modu İçin */
/* --- MOBİL (TELEFON) ÖZEL DÜZENLEME --- */
@media screen and (max-width: 768px) {

    /* Kapsayıcıyı daralt */
    .custom-filter-product-badges {
        top: 6px !important;
        left: 6px !important;
        right: 6px !important;
        gap: 3px !important;
        z-index: 5 !important;
    }

    /* Yeni ve İndirim Rozetleri - Daha zarif ve küçük */
    .custom-filter-badge {
        /* border-radius: 2px; */
        padding: 4px 5.5px;
        font-size: 10px !important;
        min-width: 44px !important;
        font-weight: 700 !important;
        border-radius: 3px !important;
        line-height: 1 !important;
        text-shadow: none !important;
    }

    /* Kargo Bedava Görseli - Mobilde baskın ve büyük */
    .custom-filter-badge-img {
        position: absolute !important;
        top: -1px !important;
        right: -3px !important;
        width: 100px !important;
        max-width: 100px !important;
        height: auto !important;
        display: block !important;
        filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2)) !important;
    }

    /* Ürün Başlığı Hizalaması */
    .custom-filter-product-card h4 {
        font-size: 11px !important;
        margin-top: 10px !important;
        line-height: 1.3 !important;
    }
}
/*********/

.custom-filter-product-img-second {
    transform: translateX(100%);
    z-index: 0;
}

.custom-filter-product-img.custom-filter-slide-out {
    transform: translateX(-100%);
}

.custom-filter-product-img-second.custom-filter-slide-in {
    transform: translateX(0);
    z-index: 1;
}

.custom-filter-product-card h4 {
    padding: 18px 20px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    min-height: 65px;
    line-height: 1.5;
}

.custom-filter-product-rating {
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.custom-filter-stars {
    display: flex;
    gap: 2px;
}

.custom-filter-star {
    color: #ddd;
    font-size: 14px;
}

.custom-filter-star-filled {
    color: #ffa500;
}

.custom-filter-star-half {
    background: linear-gradient(90deg, #ffa500 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.custom-filter-review-count {
    font-size: 12px;
    color: #999;
}

.custom-filter-price {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-filter-old-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
}

.custom-filter-new-price {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
}

.custom-filter-free-shipping {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(135deg, #27ae60, #229954);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 6px;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

/* Add discount percentage on price */
.custom-filter-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px 20px;
}

.custom-filter-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-filter-discount-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Pagination */
.custom-filter-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding: 30px 0;
}

.custom-filter-pagination-btn,
.custom-filter-pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.2s;
}

.custom-filter-pagination-num:hover,
.custom-filter-pagination-btn:hover {
    border-color: #2c3e50;
    color: #2c3e50;
    background: #f8f9fa;
}

.custom-filter-pagination-num.custom-filter-active {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.custom-filter-pagination-dots {
    color: #999;
    font-size: 14px;
    padding: 0 5px;
}

.custom-filter-pagination-prev,
.custom-filter-pagination-next {
    font-weight: 600;
}

.custom-filter-pagination-btn:hover {
    background: #2c3e50;
    color: #fff;
}

/* Mobile Filter Toggle */
.custom-filter-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    color: #2c3e50;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.custom-filter-mobile-toggle:hover {
    border-color: #2c3e50;
}

.custom-filter-mobile-toggle.custom-filter-active .custom-filter-toggle-icon {
    transform: rotate(180deg);
}

.custom-filter-toggle-icon {
    transition: transform 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .custom-filter-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .custom-filter-no-sidebar .custom-filter-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-filter-container {
        flex-direction: column;
        padding: 15px;
    }
    
    /* Show mobile toggle */
    .custom-filter-mobile-toggle {
        display: flex;
    }
    
    /* Sidebar slides from top */
    .custom-filter-sidebar {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        margin-bottom: 0;
    }
    
    .custom-filter-sidebar.custom-filter-active {
        max-height: 2000px;
        margin-bottom: 20px;
    }
    
    .custom-filter-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .custom-filter-no-sidebar .custom-filter-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-filter-toolbar {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-filter-toolbar-left {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    
    .custom-filter-result-count {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .custom-filter-sort-select {
        min-width: auto;
        flex: 1;
    }
    
    .custom-filter-items-select {
        min-width: 70px;
    }
    
    .custom-filter-shipping-banner {
        width: 100%;
        margin-top: 10px;
    }
    
    .custom-filter-selected-filters {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .custom-filter-label {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .custom-filter-product-card h4 {
        font-size: 13px;
        min-height: 50px;
        padding: 12px 15px 8px;
    }
    
    .custom-filter-product-image-container {
        height: 220px;
    }
    
    .custom-filter-product-img {
        height: 220px;
    }
    
    .custom-filter-pagination {
        padding: 20px 0;
        gap: 5px;
    }
    
    .custom-filter-pagination-btn,
    .custom-filter-pagination-num {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .custom-filter-container {
        padding: 10px;
    }
    
    .custom-filter-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .custom-filter-no-sidebar .custom-filter-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-filter-product-image-container {
        height: 180px;
    }
    
    .custom-filter-product-img {
        height: 180px;
    }
    
    .custom-filter-new-price {
        font-size: 18px;
    }
    
    .custom-filter-old-price {
        font-size: 12px;
    }
}
