.products-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 18px;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

.products-filters {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.search-filter {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.search-form {
    display: flex;
    width: 100%;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #eaeaea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

/* Стили для скроллбара */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background-color: #f8f8f8;
}

.search-suggestions-header {
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.search-suggestion-item.active {
    background-color: #bc251d;
    color: white;
}

.search-suggestion-highlight {
    font-weight: bold;
    color: #bc251d;
}

.search-suggestion-item.active .search-suggestion-highlight {
    color: white;
}

.search-suggestion-item.loading {
    color: #888;
    font-style: italic;
    text-align: center;
    cursor: default;
}

.search-suggestion-item.loading:hover {
    background-color: transparent;
}

.search-input:focus {
    outline: none;
    border-color: #bc251d;
    box-shadow: 0 0 0 3px rgba(188, 37, 29, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: #bc251d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #cb2820;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 37, 29, 0.3);
}

.categories-filter {
    display: flex;
    justify-content: center;
    width: 100%;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
}

.filter-btn {
    padding: 12px 20px;
    border: 2px solid #eaeaea;
    border-radius: 25px;
    background: white;
    color: #303030;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 16px;
    opacity: 0.8;
}

.btn-text {
    font-weight: 500;
}

.btn-count {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #bc251d, #cb2820);
    color: white;
    border-color: #bc251d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 37, 29, 0.3);
}

.filter-btn.active .btn-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.filter-btn:hover .btn-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Стили для выпадающего списка категорий */
.categories-dropdown {
    display: flex;
    justify-content: center;
    width: 100%;
}

.dropdown-wrapper {
    position: relative;
    min-width: 280px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #303030;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.dropdown-toggle:hover {
    border-color: #bc251d;
    box-shadow: 0 4px 16px rgba(188, 37, 29, 0.15);
    transform: translateY(-1px);
}

.dropdown-toggle.active {
    border-color: #bc251d;
    background: #fefefe;
    box-shadow: 0 6px 20px rgba(188, 37, 29, 0.2);
}

.dropdown-icon {
    font-size: 18px;
    margin-right: 10px;
    opacity: 0.8;
}

.dropdown-text {
    flex: 1;
    margin-right: 12px;
}

.dropdown-count {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #666;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #bc251d;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px 10px 0 0;
}

.header-title {
    font-weight: 600;
    color: #303030;
    font-size: 14px;
}

.close-dropdown {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-dropdown:hover {
    background: #e9ecef;
    color: #303030;
}

.dropdown-items {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #303030;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #bc251d;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #bc251d;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item.active {
    background: linear-gradient(135deg, #bc251d, #cb2820);
    color: white;
}

.dropdown-item.active::before {
    transform: scaleY(1);
    background: white;
}

.dropdown-item.active:hover {
    background: linear-gradient(135deg, #cb2820, #d42a22);
    color: white;
}

.item-icon {
    font-size: 16px;
    margin-right: 10px;
    opacity: 0.8;
}

.item-text {
    flex: 1;
    font-weight: 500;
}

.item-count {
    background: #e9ecef;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.dropdown-item.active .item-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dropdown-item:hover .item-count {
    background: #dee2e6;
}

.dropdown-item.active:hover .item-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Стили для скроллбара в выпадающем списке */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.product-image-section {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-img-wrapper {
    height: 100%;
    width: 100%;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.02);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-header {
    margin-bottom: 15px;
}

.product-title {
    font-family: 'Golos Text', sans-serif;
    font-size: 20px;
    color: #303030;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background: #00553f;
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.product-content {
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
}

.product-price {
    flex: 1;
}

.price {
    font-family: 'Golos Text', sans-serif;
    font-size: 24px;
    color: #bc251d;
    font-weight: bold;
}

.price-on-request {
    font-size: 16px;
    color: #888;
    font-style: italic;
}

.product-link {
    padding: 12px 24px;
    background: #bc251d;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    text-align: center;
    min-width: 120px;
    padding-top: 22px;
}

.product-link:hover {
    background: #cb2820;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 37, 29, 0.3);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-products-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-products-icon {
    fill: #ccc;
    margin-bottom: 20px;
}

.no-products h3 {
    font-family: 'Golos Text', sans-serif;
    font-size: 24px;
    color: #303030;
    margin-bottom: 10px;
}

.no-products p {
    color: #888;
    line-height: 1.6;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-link {
    padding: 8px 16px;
    border: 2px solid #eaeaea;
    border-radius: 6px;
    color: #303030;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #bc251d;
    color: white;
    border-color: #bc251d;
    text-decoration: none;
}

.current-page {
    color: #888;
    font-size: 14px;
}

@media (max-width: 767px) {
    .products-section {
        padding: 40px 0;
    }


    .products-filters {
        gap: 20px;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    .search-suggestions {
        max-height: 150px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .dropdown-wrapper {
        min-width: 100%;
        max-width: 320px;
    }

    .dropdown-toggle {
        padding: 12px 16px;
        font-size: 14px;
    }

    .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-header {
        padding: 12px 16px;
    }

    .dropdown-item {
        padding: 10px 16px;
    }

    .product-info {
        padding: 20px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .product-link {
        text-align: center;
    }

    .products-grid {
        gap: 20px;
    }
}
