/**
 * KKTC Archive Sorting Styles
 * WooCommerce arşiv sayfaları için custom sorting stilleri
 */

/* Sorting dropdown enhancements */
.woocommerce-ordering select {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    min-width: 200px;
    transition: all 0.3s ease;
}

.woocommerce-ordering select:hover {
    border-color: #FF6B35;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* KKTC sorting options styling */
.woocommerce-ordering select option[value^="kktc_"] {
    background: linear-gradient(90deg, #e8f5e8 0%, #f0f8f0 100%);
    font-weight: 600;
    color: #2d5a2d;
}

/* Sorting results info */
.kktc-sorting-info {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #4CAF50;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 15px 0;
    font-size: 14px;
    color: #2d5a2d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kktc-sorting-info::before {
    content: "🎯";
    font-size: 16px;
}

/* Archive page enhancements */
.woocommerce.archive .site-main {
    position: relative;
}

.kktc-archive-header {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.kktc-archive-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.kktc-archive-header .description {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Product count with KKTC branding */
.woocommerce-result-count {
    background: rgba(255, 107, 53, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #FF6B35;
    font-weight: 600;
    color: #d63384;
}

/* Responsive design */
@media (max-width: 768px) {
    .woocommerce-ordering select {
        width: 100%;
        min-width: auto;
        margin-bottom: 15px;
    }
    
    .kktc-archive-header h1 {
        font-size: 24px;
    }
    
    .kktc-sorting-info {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Loading animation for sorting */
.woocommerce.archive.kktc-sorting-loading {
    position: relative;
}

.woocommerce.archive.kktc-sorting-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce.archive.kktc-sorting-loading::after {
    content: "🎯 KKTC Akıllı Sıralama Yükleniyor...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FF6B35;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}