/* old stufffff #cat-list .ais-HierarchicalMenu-list {
	margin-left: 15px !important;
}*/

/* ========= algolia styling ============= */

/* set filters max width */
.search-panel__filters {
    max-width: 300px;
}
/* selected items in column (not shown!) */
.ais-CurrentRefinements-list {
    flex-direction: column;
}
/*
#current-refinements {
    display: none;
}
*/

.ais-RefinementList-showMore--disabled { display: none; }

.ais-CurrentRefinements-item {
	background-color: #a1aa97;
}

/* remove list count
*/
.ais-RefinementList-count { display:none;}


.ais-RefinementList-label {
	cursor: pointer;
}

/* checkbox styling */
.ais-RefinementList-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #000;
    border: none;
    border-radius: 2px;
    height: 1rem;
    margin: 0;
    margin-right: 1rem;
    position: relative;
    width: 1rem;
}

.ais-RefinementList-item--selected .ais-RefinementList-checkbox {
    background-color: #a1aa97;
}
.ais-RefinementList-item--selected .ais-RefinementList-checkbox::after {
    background-color:
    #fff;
    border-radius: 4px;
    content: '';
    height: 4px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translateX(-2px) translateY(-2px);
    width: 4px;
}
/* results container */
.ais-Hits {
    padding-bottom: 60px;
}
/* select items font size */
[class^="ais-"] { font-size: 16px; }

.ais-Breadcrumb,.ais-ClearRefinements,.ais-CurrentRefinements,.ais-GeoSearch,.ais-HierarchicalMenu,.ais-Hits,.ais-HitsPerPage,.ais-InfiniteHits,.ais-InfiniteResults,.ais-Menu,.ais-MenuSelect,.ais-NumericMenu,.ais-NumericSelector,.ais-Pagination,.ais-Panel,.ais-PoweredBy,.ais-RangeInput,.ais-RangeSlider,.ais-RatingMenu,.ais-RefinementList,.ais-Results,.ais-ResultsPerPage,.ais-SearchBox,.ais-SortBy,.ais-Stats,.ais-ToggleRefinement {
    color: #000;
}

.ais-InstantSearch h3 {
	font-size: 18px;
}


/* search box */
.ais-SearchBox-input {border-radius: 0;}

/* show more/less buttons */
button.ais-RefinementList-showMore {border-radius: 0 !important;}
button.ais-RefinementList-showMore:hover { background-color: #fff;}

/* reset button */
.ais-ClearRefinements-button {
    background-color: #fff;
    color: #333 !important;
    border: 1px solid #333 !important;
    border-radius: 0;
    margin: 10px 0;
    opacity: 1;
}
.ais-ClearRefinements-button:hover { background-color: #fff; cursor: pointer;}

/* category margin */
.search-panel__filters > div {
    margin-bottom: 14px;
}

/* result product items */
.ais-Hits-item, .ais-InfiniteHits-item, .ais-InfiniteResults-item, .ais-Results-item {
    border: none;
    box-shadow: none;
}
/* product images */
.ais-Hits-item .product-images .crossfade-images:hover img:not(.hover-image) {
    opacity:1 !important;
}
/* image container height */
.ais-Hits-item a.product-images {
    min-height: auto;
}


/* Search bar */
.ais-SearchBox-form {
    display: flex;
    margin-bottom: 20px;
}
.woocommerce button[type="submit"].ais-SearchBox-submit,
.ais-SearchBox-reset {
    margin: 0;
    top: 26px;
    width: 52px;
    height: 52px;
}
.ais-SearchBox-reset {
    position: absolute;
    right: 50px;
}
.ais-SearchBox-submitIcon {
    width: 25px;
    height: 25px;
}
.ais-SearchBox-resetIcon {
    width: 15px;
    height: 15px;
}

/* product images */
.ais-Hits-item .img-wrap {
    background: #fff;
}
.ais-Hits-item .product-transition-fade:hover .first-image {
    opacity: 0;
}
/* product price */
.woocommerce .ais-Hits-list .product .price,
.woocommerce ol.ais-Hits-list li.product .price,
.woocommerce div.product p.price {
    color: #222222;
}
.woocommerce ol.ais-Hits-list li.product .price del {
    color: inherit;
    opacity: .5;
}
/* Pagination */
.ais-Pagination-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-width: 2px;
    border-color: transparent;
    color: #222222;
}
.ais-Pagination-item--disabled .ais-Pagination-link {
    color: #222222;
    opacity: .3;
}
.ais-Pagination-item--selected .ais-Pagination-link {
    color: #222222;
}
.ais-Pagination-item:not(.ais-Pagination-item--disabled) .ais-Pagination-link:hover,
.ais-Pagination-item--selected .ais-Pagination-link {
    background-color: transparent;
    border-color: #eae9e3;
    color: #222222;
}

@media only screen and (max-width: 767px) {
    .ais-Hits-item, .ais-InfiniteHits-item, .ais-InfiniteResults-item, .ais-Results-item {
        width: calc(50% - 1rem);
    }
}
@media only screen and (max-width: 460px) {
    .ais-Hits-item, .ais-InfiniteHits-item, .ais-InfiniteResults-item, .ais-Results-item {
        width: 100%;
    }
}
