/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/


.category-section{
    width: 100%;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 5rem;
    margin-top: 18vh;
}
.slide-img-carousel {
  position: relative;
  width: 100%;
  max-width: 300px; /* adjust as needed */
  overflow: hidden;
}

.slide-img-carousel img {
  width: 100%;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  z-index: 10;
}

.prev-btn {
  left: 5px;
}

.next-btn {
  right: 5px;
}

.filter-section .category-list .category-button{
    text-transform: capitalize;
}

.category-filter{
    width: 30%;
    height: 100%;
    padding: 2rem;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.category-filter-button{
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.category-filter-button i{
    font-size: 3rem;
    color: #333;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.category-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.category-button {
    padding: 0.8rem 1rem;
    border: none;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    color: #333;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 100%;
}

.category-button:hover {
    background-color: #e0e0e0;
}

.category-button.active {
    background-color: #1392F9;
    color: white !important;
}

.arrow {
    font-size: 0.8rem;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.category-button.active .arrow {
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
}

.subcategory-list {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.category-item.active .subcategory-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.subcategory-button {
    padding: 0.6rem 1rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.subcategory-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.subcategory-button.active {
    background-color: #e0e0e0;
    color: #333;
}

.category-product{
    width: 70%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 2rem;
}

.category-product .slide{
    width: 28%;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    border: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.category-product .slide .slide-img {
    width: 100%;
    height: 220px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.slide-details {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.product-link{
    text-decoration: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 0.5rem;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    width: 100%;
}

#close-cate{
    display: none;
}

@media (max-width: 480px) {
    .category-section{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 2rem;
        margin-top: 10vh;
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
    }

    .category-filter{
        width: 100%;
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
    }

    .category-product{
        width: 100%;
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
        padding: 2vh 2vw;
        gap: 1rem;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }

    .category-list{
        position: fixed;
        top: 0;
        left: 100%;
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
        display: flex;
        z-index: 99999999999999999;
        background-color: #fff;
        height: 100%;
        padding-top: 15vh;
        width: 80%;
        overflow-y: scroll;
    }

    #close-cate{
        display: block;
        position: absolute;
        top: 4vh;
        right: 2vw;
        font-size: 4rem;
        color: #333;
        z-index: 999999999999999999999999;
    }

    .category-product .slide{
        width: 80%;
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
        padding: 2vh 2vw;
    }
}