/* Gücbir Mobile Product Cards CSS */

/* Varsayılan: masaüstü görünümü - mobil kartları gizle */
.gucbir-mobile-cards-wrapper {
    display: none !important;
}

/* Masaüstü görünümü - 850px üstü */
@media screen and (min-width: 850px) {
    .gucbir-mobile-cards-wrapper {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Pagination'ı masaüstünde gizle */
    .gucbir-pagination {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Mobil görünümü - 850px altı */
@media screen and (max-width: 849px) {
    .gucbir-mobile-cards-wrapper {
        display: grid !important;
        gap: 20px;
        margin: 20px 0;
        padding: 0 15px;
    }
    
    /* Pagination'ı mobilde göster */
    .gucbir-pagination {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }
    
    /* Sadece orijinal WooCommerce ürün listesini gizle */
    .woocommerce ul.products, 
    .woocommerce-page ul.products,
    .shop_table,
    .desktop-table-wrapper {
        display: none !important;
    }
}

/* Geçici: Görünür olduğunu kontrol etmek için */
.gucbir-mobile-cards-wrapper {
    padding: 10px;
    margin-top: 20px;
    min-height: 200px; /* Görünmesi için minimum yükseklik verin */
}

/* Mobil Kart Stilleri */
.gucbir-product-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.gucbir-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Kart Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e1e5e9;
}

.card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    mix-blend-mode: darken;
    background: #fff;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title-section {
    flex: 1;
    min-width: 0;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Kart İçerik */
.card-content {
    padding: 15px;
}

.card-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
}

.card-spec:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #6c757d;
    flex: 1;
}

.spec-value {
    font-weight: 500;
    color: #2c3e50;
    text-align: right;
    flex: 1;
}

/* Kart Footer */
.card-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #eb1d23 0%, #d0171c 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(235, 29, 35, 0.3);
}

.card-button:hover {
    background: linear-gradient(135deg, #d0171c 0%, #b8141a 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(235, 29, 35, 0.4);
}

.button-text {
    flex: 1;
}

.button-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.card-button:hover .button-icon {
    transform: translateX(3px);
}

/* Responsive iyileştirmeler */
@media screen and (max-width: 480px) {
    .card-header {
        padding: 12px;
        gap: 12px;
    }
    
    .card-image {
        width: 70px;
        height: 70px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-footer {
        padding: 12px;
    }
    
    .card-button {
        padding: 10px 16px;
        font-size: 15px;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gucbir-product-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading state */
.gucbir-mobile-cards-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.gucbir-mobile-cards-wrapper:empty::after {
    content: "Ürün bulunamadı";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}
