/* ++ PARENT CATEGORY LAYOUT ++ */
.custom-parent-category{
    display: table;
    width: 100%;
    margin-bottom: 20px;
}
.parent-category-banner{
    display: table;
    width: 100%;
    min-height: 180px;
    height: 180px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.parent-category-description{
    display: table-cell;
    vertical-align: middle; /* centers content vertically */
    background-color: rgba(0, 0, 0, 0.35);
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 500;
    padding: 30px;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    position: relative;
    vertical-align: middle;
}
/* -- PARENT CATEGORY LAYOUT -- */
/* ++ GRID VIEW ++ */
.custom-product-table.grid{
    display: table;
    width: 100%;
}
.custom-product-row.grid{
    display: table-row;
}
.custom-product-box.grid{
    cursor:pointer;
    display: inline-block;
    position: relative;
    vertical-align: top;
    width: 24.7%;
    max-width: 24.7%;
    box-sizing: border-box;
    padding: 0px 10px 10px 10px;
    transition: transform 0.3s ease; /* Add smooth transition */
}
.custom-product-box.grid:hover{
    transform: scale(1.05); /* Increase the scale factor for more zoom */

}

.custom-product-image.grid img {
    display: block;
    width: 100%;
    height: auto;
}
.custom-product-title.grid{
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 10px 0px;
}
span.product-type{
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #212227;
    line-height: 16px;
}

span.product-pattern{
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    color: #212227;
    line-height: 16px;
    text-transform: lowercase;
}

span.product-color{
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    color: #767676;
    line-height: 16px;
    text-transform: lowercase;
}

.custom-product-min-price.grid{
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    color: #212227;
}

.custom-product-min-price.grid p.min-price-value{
    font-size: 16px;
    font-weight: 600;
    color: #212227;
    display: inline-block;
    margin: 0;
    padding: 0;
}
/* -- GRID VIEW -- */

/* ++ LIST VIEW ++ */

#product-variation-table{
    width: 100%;
    border-collapse: collapse;
}
#product-variation-table tr{
    border-bottom: 1px #767676 solid;
}
#product-variation-table tr td{
    background: #fff !important;
}
td.product-archive-image-td{
    width: 15%;
}
td.product-archive-price{
    width: 15%;
    text-align: center;
}
td.product-archive-stock{
    width: 5%;
    text-align: center;
}
td.product-archive-price del{
    display: block;
}
td.product-archive-price ins{
    text-decoration: none !important;
}
td.product-archive-actions{
    width: 20%;
}
td.product-archive-actions .btn-combined{
    width: 100% !important;
}
td.product-archive-actions .btn-combined .custom-product-add-to-cart{
    font-size: 12px;
    margin-top: 10px;
} 
a.product-archive-link{
    display: block;
    width: 100%;
    min-height: 160px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    color: #000;
}
a.product-archive-link:hover{
    color: #212227;
}
.product-archive-link-overlay{
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 0;
}
.product-archive-name,
.product-archive-sku{
    position: relative;
    z-index: 1;
    padding: 17px 20px;
}

span.sale-price,
span.woocommerce-Price-amount.amount,
td.product-archive-price ins{
    font-weight: 600;
    font-size:16px;
}

del > span.woocommerce-Price-amount.amount{
    font-weight: 400;
    font-size: 14px;
}

.product-archive-stock{
    font-weight: 600;
    font-size: 16px;
}

.variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.variation-swatch {
    padding: 5px 10px;
    border: 1px solid #212227;
    border-radius: 0px;
    background: #f9f9f9;
    color: #212227;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    min-width: 75px;
    min-height: 75px;
    float: left;
    margin-right: 10px;
    margin-bottom: 5px;
}
.variation-swatch.active{
    border: 1px solid #212227;
    background: #212227;
    color: #fff;
}
.variation-swatch:hover {
    background: #212227;
    color: #fff;
}

.product-archive-image{
    display: block;
    width: 100%;
}

.product-archive-discount{
    display: table;
    font-size: 11px;
    background-color: #c94626;
    color: #fff;
    width: 100%;
    margin-top: 10px;
    font-weight: 600;
}


/* -- LIST VIEW -- */

/* ++ FILTERS ++ */
.filters-top-bar{
    display: table;
    width: 100%;
}

.filters-top-bar-left{
    display: inline-flex;
    width: 10%;
    margin: 0;
    padding: 0;
    float: left;
    border: 1px #e2e2e2 solid;
    text-align: center;
}

.filters-top-bar-middle{
    display: inline-flex;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px #e2e2e2 solid;
}
.ttt-pro-menu{
    position: relative;
    z-index: 10 !important;
}

.filters-top-bar-right{
    display: inline-flex;
    width: 10%;
    margin: 0;
    padding: 0;
    float: right;
    border: 1px #e2e2e2 solid;
    text-align: center;
}
.filters-main-btn{
    display: block;
    width: 100%;
    height: 40px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    padding: 10px 10px;
    margin: 0;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}
.filters-main-btn span{
    margin-right: 5px;
}


.grid-view,
.list-view{
    width: 50%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
}
.grid-view{
    border-right: 1px #e2e2e2 solid;
}

.grid-view.active,
.list-view.active{
    background-color: #e2e2e2;
    color: #000;
}

.custom-search-icon{
    display: inline-block;
    padding: 8px 15px;
}

input#custom-search-input{
    display: inline-block;
    width: 100%;
    border: none;
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    padding: 8px 0px;
    margin: 0;
}

ul#custom-search-results{
    position: absolute;
    list-style: none;
    z-index: 99;
    background-color: #fff;
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    top: 42px;
    border: 1px #e2e2e2 solid;
    border-top: 0px;
    border-bottom: 0px;
    box-shadow: 0 6px 4px -7px #000;
}

ul#custom-search-results li{
    display: block;
    width: 100%;
    padding: 10px;
    border-bottom: 1px #e2e2e2 solid;
}
ul#custom-search-results li a{
    display: table;
    width: 100%;
}

ul#custom-search-results li:hover{
    background-color: #f0f0f0;
}

ul#custom-search-results li .custom-result-img{
    display: inline-block;
    margin-right: 10px;
}

ul#custom-search-results li .custom-result-img img{
    height: 100px;
    max-height: 100px;
    width: auto;
}

ul#custom-search-results li .custom-result-text{
    display: inline-block;
}
.custom-result-text .product-name{
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
.custom-result-text .product-price{
    font-size: 12px;
    font-weight: 400;
    color: #000;
}
.custom-result-text .product-price .woocommerce-Price-amount{
    font-weight: 600;
}
/* -- SHOP / ARCHIVE PAGE -- */

/* ++ FILTERS SIDEBAR ++ */

.custom-filters-sidebar-header{
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px #212227 solid;
}

img.close-filters-sidebar-btn{
    display: inline;
    float: right;
    width: 30px;
    max-width: 30px;
    height: 30px;
    max-height: 30px;
    cursor: pointer;
}

h2.custom-filters-sidebar-heading{
    display: inline;
    float: left;
    font-size: 16px;
    line-height: 30px;
    text-transform: uppercase;
    margin: 2px 0px 2px 0px;
}

.custom-filters {
    background-color: transparent;
    transform: scale(0);
    transition: background-color 0.4s, transform 0s 0.4s;
}

.custom-filters-overlay.open {
    transform: scale(1);
    overflow: hidden;
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    transition: background-color 0.4s, transform 0s;
    text-align: left;
}

.custom-filters{
    position: fixed;
    z-index: 9999;
    left: -350px;
    right: auto;
    top: 0px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-size: 14px;
    min-height: 200px;
    width: 350px;
    max-width: 100%;
    transition: .3s;
    background-color: #FAFAFA;
    box-shadow: 0 0 20px rgba(0,0,0,.2);
    border-style: none;
    border-color: initial;
    border-radius: 0;
    margin-top: 0; 
    padding: 20px 30px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(0%);
    font-family: "Montserrat", Sans-serif !important;
}

.custom-filters.open{
    opacity: 1;
    transform: translateX(100%);
}
.custom-product-filters{
    padding-bottom: 30px;
    overflow-y: scroll;
}

.filters-heading{
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    margin: 20px auto 0px auto;
    text-transform: capitalize;
    padding: 5px 0px;
    cursor: pointer;
}

.filters-expand{
    float: right;
}

.filters-separator{
    display: table;
    width: 100%;
    border:0;
    height: 1px;
    background-color: #e2e2e2 !important;
    margin: 0 auto !important;
}

ul.filter-group-option{
    list-style: none;
    padding: 0;
    width: 100%;
    margin: 0 auto;
}
ul.filter-group-option li{
    display: block;
    width: 100%;
    margin: 15px 0px;
}

ul.filter-group-option li label{
    display: inline-block;
    line-height: 23px;
    margin-top: -15px;
    padding: 0px 5px;
    cursor: pointer;
    font-size: 13px;
}

ul.filter-group-option li input:checked + label{
    font-weight: 600;
}

input.filter-price{
    display: inline-block;
    width: 60px !important;
    outline: none;
    padding: 5px 10px !important;
    font-size: 16px;
    text-align: center;
    margin: 0 !important;
    border: .125rem solid !important;
    border-color: #ececec !important;
    border-radius: .1875rem !important;
}
input.filter-price:focus{
    outline: none;
}
.filter-price-from{
    display: inline-block;
    width: 20px !important;
    margin: 0px 5px 0px 0px;
    text-align: center;
}
.filter-price-to{
    display: inline-block;
    width: 20px !important;
    margin: 0px 5px 0px 10px;
    text-align: center;
}
.filter-price-apply{
    display:inline-block;
    width: auto;
    padding: 0px 10px;
    line-height: 35px;
    background: #212227;
    color: #fff !important;
    right: 10px;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    float: right;
    height: 38px;
    line-height: 38px;
}
/* CHECKBOX STYLE */
input[type="radio"],
input[type="checkbox"]{
    display: inline-block;
    border: .125rem solid;
    border-color: #bebebe !important;
    border-radius: .1875rem;
    width: 1.4375rem;
    height: 1.4375rem;
    position: relative;
    -webkit-appearance: none!important;
    -moz-appearance: none!important;
    appearance: none!important;
    margin-right: .8125rem;
    transition: all .3s;
    cursor: pointer
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    border-color: #212227 !important;
}

input[type="radio"]::before,
input[type="checkbox"]::before{
    content: " ";
    display: block;
    height: .75rem;
    width: .375rem;
    background-color: transparent;
    position: absolute;
    top: .125rem;
    left: .4375rem;
    border-bottom: 3px solid #212227;
    border-right: 3px solid #212227;
    opacity: 0;
    transition: opacity .2s;
    transform: rotate(45deg)
}

input#color_boja-crna[type="checkbox"]::before{
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
}

input[type="radio"]:checked::before,
input[type="checkbox"]:checked::before {
    opacity: 1;
}

/* TABLET */
@media (max-width: 1024px){

    .custom-product-box.grid{
        width: 49.5%;
        max-width: 49.5%;
    }
    
    .filters-main-btn span{
        display: none;
    }
    .filters-top-bar-left{
        width: 10%;
    }
    
    .filters-top-bar-middle{
        width: 70%;
    }
    
    .filters-top-bar-right{
        width: 20%;
    }
    .custom-result-text .product-name{
        font-size: 14px;
    }
}