﻿@import url('colors.css');

.catalog>.catalog-carousel {
    width: 100%;
    height: 274px;
}

.catalog>.catalog-carousel > * {
    position: absolute;
}

.catalog>.catalog-carousel>img.carousel-img {
    width: 100%;
    height: inherit;
    object-fit: cover;
}

.catalog>.catalog-carousel>h1 {
    margin-left: 50%;
    margin-top: 100px;
}

.catalog-body {
    width: 100%;
    padding: 28px;
}

.catalog-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 64px;
    margin: 25px 44px 0 48px;
}

.catalog-content a {
    color: inherit;
}

.catalog-title {
    width: 100%;
}

.catalog-search {
    display: flex;
    justify-content: space-between;

    margin: 0 31px 0 48px;
}

.catalog-search > .ecom-content-search-field {
    justify-content: right;
}

.catalog-search > .ecom-content-search-field > input {
    width: 280px;
}

.catalog .categories {
    background-color: rgba(246, 246, 246, 1);
}

@media (min-width: 1600px) {
    .catalog .categories {
        padding: 1rem;
        margin: 1rem;
    }
}

@media (min-width: 1900px) {
    .catalog .categories {
        padding: 2rem;
        margin: 2rem;
    }
}

.catalog .category {
    display: flex;
    
    justify-content: left;
    
    gap: 12px;
    padding: 0 1rem;
    margin-top: 1rem;

    border-radius: 1rem;
    
    background-color: #FFFFFF;
}

.catalog .category:hover {
    background-color: skyblue;
    
    cursor: pointer;
}

.catalog .category-selected {
    background-color: rgba(217, 236, 255, 1);
}

.catalog .category .category-image {
    width: 48px;
    height: 48px;
    
    padding: 0.5rem;
}

.catalog .category .category-text {
    align-content: center;
}

.catalog .filters .filters-header {
    display: flex;
    
    justify-content: center;
    align-items: center;
    
    height: 60px;
    
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.catalog .filters {
    margin: 2rem 0;
    padding: 0.25rem 0;
    
    background-color: white;
    border-radius: 2rem;
}

@media (min-width: 1600px) {
    .catalog .filters {
        padding: 0.5rem;
        margin: 2rem;
    }
}

@media (min-width: 1900px) {
    .catalog .filters {
        padding: 1rem;
        margin: 4rem;
    }
}

.catalog .filters hr {
    opacity: 1;
    background-color: rgba(213, 213, 213, 1);
}

.catalog .filters .filter {
    padding: 0 3rem;
}

.catalog .filter .filter-header {
    font-size: 18px;
}

.catalog .filter .filter-body {
    font-size: 15px;
}

.filter label:not(.form-check-label):not(.custom-file-label) {
    font-weight: 400;
}

.filters .filters-submit {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-self: center;
    
    padding: 2rem;
}

.catalog .filters-submit .nemika-button {
    border: none;
    
    height: 48px;
    width: 290px;
}

.filters-panel {
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 300ms ease, opacity 300ms ease, max-height 300ms ease;
    max-height: 0; /* сжимается при скрытии */
    overflow: hidden;
}

.filters-visible {
    transform: translateX(0);
    opacity: 1;
    max-height: 2000px; /* достаточно большое значение, чтобы вместить содержимое */
    transition: transform 350ms cubic-bezier(.2,.8,.2,1), opacity 250ms ease, max-height 350ms ease;
}

.filters-hidden {
    transform: translateX(-10px);
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    
    padding: 2rem 4rem;
    margin: 2rem;
    
    border-radius: 3rem;
    background-color: rgba(217, 236, 255, 1);
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-card li {
    line-height: 1.6;
    color: #333;
    cursor: pointer;
}

.category-card li:hover {
    text-decoration: underline;
}

.category-card a {
    margin-top: auto;
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-card a::after {
    content: "⌄";
    transform: rotate(-90deg);
    font-size: 14px;
}

.btn-info-custom {
    background-color: rgba(76, 162, 255, 1);
    border: none;
    border-radius: 50px;
}
.btn-info-custom:hover {
    background-color: #79c3d1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-color: transparent !important;
    color: black !important;
}

.carousel .bg-light {
    background-color: transparent !important;
    box-shadow: none !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100) brightness(0);
    background-color: transparent;
}

.carousel-control-prev,
.carousel-control-next {
    background: none;
    border: none;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}