﻿/* ========================================================
   KATEGORİ GALERİSİ TASARIMLARI
   ======================================================== */
.ecommerce-category-wrapper {
    padding: 40px 0;
    background-color: transparent;
    font-family: 'Inter', sans-serif;
    width: 100%;
    display: block;
}

    .ecommerce-category-wrapper .gallery-header {
        text-align: center;
        margin-bottom: 25px;
    }

        .ecommerce-category-wrapper .gallery-header h2 {
            font-size: 2.2rem;
            color: #222;
            margin-bottom: 5px;
            font-weight: 700 !important;
        }

        .ecommerce-category-wrapper .gallery-header p {
            color: #666;
            font-size: 0.95rem;
            max-width: 800px;
            margin: 0 auto;
        }

    .ecommerce-category-wrapper .gallery-container {
        border: 1px solid #eaeaea;
        border-radius: 12px;
        padding: 25px;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,0.02);
        position: relative;
    }

    .ecommerce-category-wrapper .search-box {
        width: 100%;
        padding: 12px 20px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 0.95rem;
        margin-bottom: 25px;
        outline: none;
        transition: border-color 0.3s;
        color: #333;
    }

        .ecommerce-category-wrapper .search-box:focus {
            border-color: #d91f4a;
        }

    .ecommerce-category-wrapper .cat-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
        transition: max-height 0.5s ease-in-out;
    }

/* MOBİL CİHAZLAR İÇİN KESİN 2'Lİ GÖSTERİM KURALI */
@media (max-width: 575px) {
    .ecommerce-category-wrapper .cat-grid {
        /* Mobilde minmax hesabı yapma, ne olursa olsun ekrana yan yana 2 tane sığdır */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Mobilde aradaki boşluğu da biraz kıstık ki daha şık dursun */
    }
}

.ecommerce-category-wrapper .cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.2s ease;
    background: #fff;
    width: 100%;
}

    .ecommerce-category-wrapper .cat-card:hover {
        border-color: #d91f4a;
        box-shadow: 0 4px 15px rgba(217, 31, 74, 0.1);
        transform: translateY(-3px);
    }

.ecommerce-category-wrapper .cat-icon {
    height: 55px !important;
    width: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    min-height: 55px !important;
    min-width: 55px !important;
    margin-bottom: 12px !important;
    object-fit: contain !important;
    display: block !important;
}

.ecommerce-category-wrapper .cat-title {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 !important;
}

/* GİZLEME / GÖSTERME MANTIKLARI (CSS) */
.ecommerce-category-wrapper .cat-collapsed {
    display: none !important;
}

/* Arama yapıldığında gizli olanları ezerek gösterir */
.ecommerce-category-wrapper .grid-search-active .cat-collapsed {
    display: flex !important;
}

/* Arama filtresine uymayanları gizler */
.ecommerce-category-wrapper .grid-search-active .cat-search-hidden {
    display: none !important;
}

.ecommerce-category-wrapper .toggle-btn-container {
    text-align: center;
    margin-top: 25px;
}

.ecommerce-category-wrapper .btn-toggle-cats {
    background-color: #d91f4a;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 25px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(217, 31, 74, 0.2);
}

    .ecommerce-category-wrapper .btn-toggle-cats:hover {
        background-color: #b01538;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(217, 31, 74, 0.3);
    }
