/**
 * Spring Court - Category Listing Styles
 * 
 * @author    Neptune Team
 * @copyright Spring Court
 * @license   Proprietary
 */

/* ==============================================================================
   CATEGORY HEADER
   ============================================================================== */

.spring-court-category-header {
    margin-bottom: 40px;
}

.category-info {
    text-align: center;
    margin-bottom: 30px;
}

.category-title {
    /* font-size: 2.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #333; */
}

.category-description {
    max-width: 600px;
    margin: 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-description.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.category-description-toggle {
    display: none;
    margin: 10px auto 0;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-decoration: underline;
}
.category-description-toggle:focus,
.category-description-toggle:active,
.category-description-toggle:focus-visible {
    outline: none;
    box-shadow: none;
}
.category-description-toggle .toggle-text:focus,
.category-description-toggle .toggle-text:active,
.category-description-toggle .toggle-text:focus-visible {
    outline: none;
    box-shadow: none;
}



.category-description-toggle:hover {
    color: #666;
}

.category-description-toggle.show {
    display: block;
}

/* ==============================================================================
   FILTRES ET TRI
   ============================================================================== */

.category-filters-sort {
    margin-bottom: 40px;
}

#category #content-wrapper {
    width: 100%;
}



/* ==============================================================================
   GRILLE ASYMÉTRIQUE
   ============================================================================== */

.spring-court-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.products-left,
.products-right {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 50%;
}

.products-left .spring-court-product,
.products-right .spring-court-product {
    width: calc(50% - 7.5px);
    flex: 0 0 calc(50% - 7.5px);
}
.products-left .spring-court-product .js-product.product,
.products-right .spring-court-product .js-product.product {
    height: 100%;
}
.products-left .spring-court-product .js-product.product article,
.products-right .spring-court-product .js-product.product article {
    height: 100%;
}
.full-width-row {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.full-width-row .spring-court-product {
    width: calc(25% - 11.25px);
    flex: 0 0 calc(25% - 11.25px);
}

.lifestyle-image {
    width: 50%;
}

/* Images lifestyle */
.lifestyle-image {
    position: relative;
    overflow: hidden;
    /* border-radius: 8px; */
}

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

.lifestyle-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.lifestyle-link:hover {
    cursor: pointer;
}

.lifestyle-image:hover .lifestyle-img {
    /* transform: scale(1.05); */
}

.category-filters-sort #search_filters_wrapper #search_filters p.text-uppercase {
    display: none;
}

.category-filters-sort #search_filters_wrapper #search_filters {
    display: flex;
}

.category-filters-sort #search_filters_wrapper #search_filters .facet {
    width: 25%;
}

#js-product-list .pagination .col-md-4 {
    display: none;
}

#js-product-list .pagination .col-md-6 {
    width: 100%;
    margin-left: unset;
}

#js-product-list .pagination .col-md-6 .page-list {
    margin-left: auto;
    margin-right: auto;
}

#js-product-list .pagination .col-md-6 .page-list li a.next {
    margin-left: 15px;
    float: unset;
}

#js-product-list .pagination a {
    font-weight: 500;
    font-size: 14px;
}

#js-product-list .pagination .col-md-6 .page-list li a.previous {
    margin-right: 15px;
    float: unset;
}

#js-product-list .pagination .current a {
    color: var(--text-color);
    
}

#category #js-product-list .hidden-md-up.text-xs-right.up {
    display: none;
}

@media (max-width: 480px) {

    .category-title {
        font-size: 14px;
    }

    .spring-court-grid {
        grid-template-columns: 1fr;
    }

    .lifestyle-image,
    .lifestyle-right,
    .lifestyle-left {
        grid-column: 1;
        grid-row: auto;
    }

    nav.breadcrumb {
        display: none;
    }

    #js-product-list .spring-court-row.full-width-row {
        flex-direction: row;
    }

    #js-product-list .spring-court-row.full-width-row .spring-court-product {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }

    #js-product-list .spring-court-row {
        flex-direction: column;
    }

    #js-product-list .spring-court-row .products-left,
    #js-product-list .spring-court-row .lifestyle-image,
    #js-product-list .spring-court-row .products-right {
        width: 100%;
    }

    #search .js-product-list-header {
        margin-bottom: 20px;
    }

}