/*shop*/
.shop-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.shop-sidebar {
    width: 250px;
    background: white;
    padding: 15px;

}

li.cat{border-bottom:1px solid  rgba(0, 0, 0, 0.11);}

.shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-sidebar li {
    margin-bottom: 10px;
}

.shop-sidebar a {
    text-decoration: none;
    color: #333;
}

.shop-sidebar a:hover {
    color: #592027;
}

.shop-content {
    flex: 1;
}

.shop-products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

 ul {list-style-type: none; /* Убирает буллиты */}
.shop-wrapper { display:flex; gap:30px; }
.shop-sidebar { width:250px; background:white; padding:15px;  border-radius:6px; }
.shop-categories { list-style:none; margin:0; padding:0; }
.shop-categories li { margin-bottom:10px; }
.shop-category { text-decoration:none; color:#333; }
.shop-category.is-active { font-weight:600; color: #592027;}
h1.zagl{font-size: 24px;display: flex;justify-content: space-between;
    background-color: rgba(167, 167, 167, 0.151); border-bottom: 2px solid #592027; padding: 5px;
    align-items: center;        
}
.shop-category:hover { color:#592027; }
.shop-content { flex:1; }
.shop-products ul.products { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:20px; }

.loader {
    border: 6px solid #f3f3f3; /* светлый фон */
    border-top: 6px solid #592027; /* цвет вращения */
    border-radius: 60%;
    width: 80px;
    height: 80px;
    margin: 40px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =======================
   📱 Мобильная адаптация
   ======================= */
@media (max-width: 992px) {
    .shop-wrapper {
        flex-direction: column;
    }

.products.columns-3{padding-left: 0; text-align: center;}
 .attachment-woocommerce_thumbnail.size-woocommerce_thumbnail{width: 200px; height: 200px;}
.shop-wrapper{
    align-items: center;
    align-content: center;
    justify-content: center;}
    .shop-sidebar {
        
        width: 100%;
        margin-bottom: 20px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        
    }
h1.zagl{display: none;}
    .shop-sidebar.is-open {
        display: block;
        max-height: 1000px; /* достаточно большое значение */
        opacity: 1;
        text-align: center;
     
    }
.loaader {display: flex; justify-content: center;}
    
    .shop-products ul.products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .shop-filter-toggle {
        display: block;
        background:#592027;
        color: #fff;
        padding: 12px 15px;
        text-align: center;
        border-radius: 6px;
        margin-bottom: 15px;
        cursor: pointer;
        margin: 0;
    }
    .shop-filter-toggle:hover{
        background-color:rgb(141, 30, 30) ;
    }
}

@media (max-width: 576px) {
    .shop-products ul.products {
        grid-template-columns: 1fr;
    }
}

/* На десктопе показываем сайдбар как раньше */
@media (min-width: 993px) {
    .shop-sidebar {
        display: block;
        max-height: none;
        opacity: 1;
        overflow: visible;
    }

    .shop-filter-toggle {
        display: none;
    }
}

@media (max-width: 992px) {
    .shop-sidebar {
        display: none !important;
        visibility: hidden;
        opacity: 0;
    }

    .shop-sidebar.is-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

