/* ========================================
   Kategori Sayfası Modern Tasarım
   ======================================== */

/* Kategori Sidebar Widget */
.sidebar-widget.widget-category-2 {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(155, 48, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.sidebar-widget.widget-category-2 .section-title {
    color: #F8F8FF !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid rgba(155, 48, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.sidebar-widget.widget-category-2 .section-title i {
    color: #9B30FF !important;
    font-size: 20px !important;
}

/* Kategori Listesi */
.sidebar-widget.widget-category-2 ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-widget.widget-category-2 ul li {
    margin-bottom: 8px !important;
}

.sidebar-widget.widget-category-2 ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(155, 48, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #E5E7EB !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.sidebar-widget.widget-category-2 ul li a:hover {
    background: rgba(155, 48, 255, 0.08) !important;
    border-color: rgba(155, 48, 255, 0.3) !important;
    transform: translateX(4px) !important;
    color: #F8F8FF !important;
}

.sidebar-widget.widget-category-2 ul li.uste_don a {
    background: rgba(155, 48, 255, 0.1) !important;
    border-color: rgba(155, 48, 255, 0.2) !important;
    font-weight: 600 !important;
}

.sidebar-widget.widget-category-2 ul li.uste_don a:hover {
    background: rgba(155, 48, 255, 0.15) !important;
}

.sidebar-widget.widget-category-2 .miktar2 {
    background: rgba(155, 48, 255, 0.15) !important;
    color: #9B30FF !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Filtre Checkbox'ları */
.sidebar-widget.widget-category-2 h6 {
    color: #9B30FF !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 20px 0 12px 0 !important;
}

.sidebar-widget.widget-category-2 ul li label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 1px 5px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(155, 48, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #E5E7EB !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
    margin: 0 !important;
    text-transform: capitalize;
}

.sidebar-widget.widget-category-2 ul li label:hover {
    background: rgba(155, 48, 255, 0.08) !important;
    border-color: rgba(155, 48, 255, 0.3) !important;
}

.sidebar-widget.widget-category-2 ul li label.active,
.sidebar-widget.widget-category-2 ul li label:has(input:checked) {
    background: linear-gradient(135deg, rgba(155, 48, 255, 0.15) 0%, rgba(189, 95, 255, 0.15) 100%) !important;
    border-color: #9B30FF !important;
    color: #F8F8FF !important;
}

.sidebar-widget.widget-category-2 ul li label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: #9B30FF !important;
}

/* Sıralama ve Filtre Bar */
.shop-product-fillter {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(155, 48, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.shop-product-fillter .totall-product {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.shop-product-fillter .totall-product p {
    color: #E5E7EB !important;
    font-size: 15px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.shop-product-fillter .totall-product p i {
    color: #9B30FF !important;
    font-size: 18px !important;
}

.shop-product-fillter .totall-product p strong {
    color: #9B30FF !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.shop-product-fillter .totall-product label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(155, 48, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #E5E7EB !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.shop-product-fillter .totall-product label:hover {
    background: rgba(155, 48, 255, 0.08) !important;
    border-color: rgba(155, 48, 255, 0.3) !important;
}

.shop-product-fillter .totall-product label.checked,
.shop-product-fillter .totall-product label:has(input:checked) {
    background: linear-gradient(135deg, rgba(155, 48, 255, 0.15) 0%, rgba(189, 95, 255, 0.15) 100%) !important;
    border-color: #9B30FF !important;
    color: #F8F8FF !important;
}

.shop-product-fillter .totall-product label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: #9B30FF !important;
}

.shop-product-fillter .totall-product label i {
    color: #34C759 !important;
}

/* Sıralama Select */
.shop-product-fillter select.orderby {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(155, 48, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 12px 40px 12px 16px !important;
    color: #E5E7EB !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 250px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    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='%239B30FF' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
}

.shop-product-fillter select.orderby:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(155, 48, 255, 0.4) !important;
}

.shop-product-fillter select.orderby:focus {
    outline: none !important;
    border-color: #9B30FF !important;
    box-shadow: 0 0 0 3px rgba(155, 48, 255, 0.1) !important;
}

.shop-product-fillter select.orderby option {
    background: #1a1b1f !important;
    color: #E5E7EB !important;
    padding: 10px !important;
}

/* Pagination */
.pagination-area {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

.pagination-area .pagination {
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.pagination-area .pagination .page-item {
    margin: 0 !important;
}

.pagination-area .pagination .page-item .page-link {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(155, 48, 255, 0.15) !important;
    color: #E5E7EB !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.pagination-area .pagination .page-item .page-link:hover {
    background: rgba(155, 48, 255, 0.08) !important;
    border-color: rgba(155, 48, 255, 0.3) !important;
    color: #F8F8FF !important;
    transform: translateY(-2px) !important;
}

.pagination-area .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #9B30FF 0%, #BD5FFF 100%) !important;
    border-color: #9B30FF !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(155, 48, 255, 0.3) !important;
}

.pagination-area .pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: rgba(155, 48, 255, 0.1) !important;
    color: #6B7280 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .shop-product-fillter {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .shop-product-fillter .totall-product {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .shop-product-fillter select.orderby {
        width: 100% !important;
        min-width: auto !important;
    }
}

@media (max-width: 768px) {
    .sidebar-widget.widget-category-2 {
        padding: 16px !important;
    }
    
    .sidebar-widget.widget-category-2 .section-title {
        font-size: 16px !important;
    }
    
    .shop-product-fillter {
        padding: 16px !important;
    }
    
    .pagination-area .pagination .page-item .page-link {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Kategori Açıklama Bölümü */
.kategori-aciklama {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(155, 48, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 40px 32px !important;
    margin-top: 40px !important;
    text-align: center !important;
}

.kategori-aciklama .title.style-3 {
    color: #F8F8FF !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.kategori-aciklama .font-lg.text-grey-700 {
    color: #9FA4AA !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
}

/* ========================================
   Kategori Sayfası Modern Empty State
   ======================================== */

/* Kategori Empty State */
.kategori-empty {
    text-align: center !important;
    padding: 80px 20px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(155, 48, 255, 0.1) !important;
}

.kategori-empty-icon {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(155, 48, 255, 0.1) 0%, rgba(189, 95, 255, 0.1) 100%) !important;
    border-radius: 50% !important;
    border: 3px solid rgba(155, 48, 255, 0.2) !important;
    position: relative !important;
    animation: emptyIconFloat 3s ease-in-out infinite !important;
}

.kategori-empty-icon::before {
    content: '' !important;
    position: absolute !important;
    inset: -15px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(155, 48, 255, 0.05) 0%, rgba(189, 95, 255, 0.05) 100%) !important;
    z-index: -1 !important;
    animation: emptyIconPulse 2s ease-in-out infinite !important;
}

.kategori-empty-icon i {
    font-size: 56px !important;
    background: linear-gradient(135deg, #9B30FF 0%, #BD5FFF 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

@keyframes emptyIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes emptyIconPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.kategori-empty h4 {
    color: #F8F8FF !important;
    font-size: 26px !important;
    margin-bottom: 16px !important;
    font-weight: 700 !important;
}

.kategori-empty p {
    color: #9FA4AA !important;
    font-size: 16px !important;
    margin-bottom: 32px !important;
    line-height: 1.6 !important;
}

.kategori-empty form {
    max-width: 500px !important;
    margin: 0 auto !important;
}

.kategori-empty form input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(155, 48, 255, 0.2) !important;
    color: #E5E7EB !important;
    border-radius: 10px !important;
    padding: 14px 20px !important;
    width: 100% !important;
    margin: 0 auto 16px !important;
    display: block !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.kategori-empty form input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #9B30FF !important;
    box-shadow: 0 0 0 3px rgba(155, 48, 255, 0.1) !important;
    outline: none !important;
}

.kategori-empty form button {
    background: linear-gradient(135deg, #9B30FF 0%, #BD5FFF 100%) !important;
    color: #fff !important;
    padding: 14px 36px !important;
    border-radius: 10px !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.kategori-empty form button i {
    font-size: 16px !important;
}

.kategori-empty form button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(155, 48, 255, 0.4) !important;
}

.kategori-empty form button:active {
    transform: translateY(0) !important;
}

/* ========================================
   Filtreler Modern Tasarım
   ======================================== */

.sidebar-widget.widget-category-2 {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    border: 1px solid rgba(155, 48, 255, 0.15) !important;
    margin-bottom: 24px !important;
}

.sidebar-widget h5.section-title {
    color: #F8F8FF !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid rgba(155, 48, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.sidebar-widget h5.section-title i {
    color: #9B30FF !important;
    font-size: 20px !important;
}

.sidebar-widget h6 {
    color: #9B30FF !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.sidebar-widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.sidebar-widget ul li {
    border: none !important;
    margin-bottom: 8px !important;
}

.sidebar-widget ul li label {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(155, 48, 255, 0.2) !important;
    color: #E5E7EB !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.sidebar-widget ul li label:hover {
    background: rgba(155, 48, 255, 0.1) !important;
    border-color: rgba(155, 48, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

.sidebar-widget ul li label.active,
.sidebar-widget ul li label.checked {
    background: linear-gradient(135deg, rgba(155, 48, 255, 0.2) 0%, rgba(189, 95, 255, 0.2) 100%) !important;
    border-color: #9B30FF !important;
    color: #F8F8FF !important;
    font-weight: 600 !important;
}

.sidebar-widget ul li label input {
    display: none !important;
}

/* ========================================
   Sıralama Modern Tasarım
   ======================================== */

.shop-product-fillter {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    border: 1px solid rgba(155, 48, 255, 0.15) !important;
    margin-bottom: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.totall-product {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.totall-product p {
    color: #E5E7EB !important;
    font-size: 15px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.totall-product p strong {
    color: #9B30FF !important;
    font-size: 18px !important;
}

.totall-product label {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(155, 48, 255, 0.2) !important;
    color: #E5E7EB !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

.totall-product label:hover {
    background: rgba(155, 48, 255, 0.1) !important;
    border-color: rgba(155, 48, 255, 0.4) !important;
}

.totall-product label.checked {
    background: linear-gradient(135deg, rgba(155, 48, 255, 0.2) 0%, rgba(189, 95, 255, 0.2) 100%) !important;
    border-color: #9B30FF !important;
    color: #F8F8FF !important;
    font-weight: 600 !important;
}

.totall-product label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    accent-color: #9B30FF !important;
}

select.orderby {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(155, 48, 255, 0.2) !important;
    color: #E5E7EB !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 250px !important;
    outline: none !important;
}

select.orderby:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(155, 48, 255, 0.4) !important;
}

select.orderby:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #9B30FF !important;
    box-shadow: 0 0 0 3px rgba(155, 48, 255, 0.1) !important;
}

select.orderby option {
    background: #1a1b1e !important;
    color: #E5E7EB !important;
    padding: 12px !important;
}

/* Responsive */
@media (max-width: 991px) {
    .shop-product-fillter {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .totall-product {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    select.orderby {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .kategori-empty {
        padding: 60px 20px !important;
    }
    
    .kategori-empty-icon {
        width: 100px !important;
        height: 100px !important;
    }
    
    .kategori-empty-icon i {
        font-size: 48px !important;
    }
    
    .kategori-empty h4 {
        font-size: 22px !important;
    }
    
    .kategori-empty p {
        font-size: 14px !important;
    }
    
    .sidebar-widget.widget-category-2 {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .shop-product-fillter {
        padding: 16px !important;
    }
    
    .telmb {
        margin-bottom: 16px !important;
    }
}

/* Mobil: kategori + filtreler sağdan çekmece (FOUC / akordeon yok) */
html.kategori-sidebar-open {
    overflow: hidden;
}

.kategori-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(10, 8, 14, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.kategori-sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kategori-sidebar-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(155, 48, 255, 0.4);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(155, 48, 255, 0.25) 0%, rgba(99, 40, 140, 0.35) 100%);
    color: #f8f8ff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.kategori-sidebar-open-btn:hover {
    border-color: rgba(189, 95, 255, 0.55);
    box-shadow: 0 6px 20px rgba(155, 48, 255, 0.2);
}

.kategori-sidebar-open-btn:active {
    transform: scale(0.99);
}

.kategori-sidebar-open-btn i {
    font-size: 18px;
    color: #bd5fff;
}

.kategori-sidebar-sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.kategori-sidebar-sheet-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(155, 48, 255, 0.2);
    background: linear-gradient(180deg, rgba(30, 22, 40, 0.98) 0%, rgba(18, 14, 24, 0.98) 100%);
}

.kategori-sidebar-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8f8ff;
}

.kategori-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(155, 48, 255, 0.35);
    border-radius: 10px;
    background: rgba(155, 48, 255, 0.12);
    color: #e0c4ff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.kategori-sidebar-close:hover {
    background: rgba(155, 48, 255, 0.22);
    color: #fff;
}

.kategori-sidebar-sheet-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 28px;
}

@media (min-width: 992px) {
    .kategori-sidebar-col {
        height: auto !important;
    }

    .kategori-sidebar-sheet-body {
        padding: 0;
        overflow: visible;
    }
}

@media (max-width: 991.98px) {
    .page-kategori .kategori-sidebar-col {
        height: 0 !important;
        min-height: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
    }

    .page-kategori .kategori-sidebar-sheet {
        position: fixed;
        top: 0;
        right: 0;
        width: min(92vw, 420px);
        height: 100dvh;
        max-height: 100dvh;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(165deg, #141018 0%, #0d0b10 55%, #121016 100%);
        border-left: 1px solid rgba(155, 48, 255, 0.22);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    }

    .page-kategori .kategori-sidebar-sheet.is-open {
        transform: translateX(0);
    }

    .page-kategori .kategori-sidebar-sheet .sidebar-widget.widget-category-2 {
        margin-bottom: 16px !important;
    }
}

