/* Marketplace */

.widget-product-grid.product-items, 
ol.products.list.items.product-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4rem 2rem;
    text-align: center;
}

.catalog-category-view .products-grid .product-items {
    margin-bottom: 4rem;
}

.page-layout-1column .block.widget .products-grid .product-item,
.widget-product-grid.product-items .product-item,
.catalog-category-view  .products-grid .product-item {
    width: calc(50% - 2rem);
    margin: 0 !important;
    padding: 0;
    text-align: center;
    position: relative;
}

.product-item a.product-item-link,
.products a.product-item-link {
    font-size: var(--text-h4-size);
    line-height: var(--text-h4-line-height);
    font-weight: var(--font-weight-bold);
}

.catalog-category-view .top-banner-wrapper {
    margin-bottom: 2rem;
}

.products {
    margin: 2rem 0;
}

.page-layout-2columns-left .sidebar-additional, 
.page-layout-2columns-left .sidebar-main {
    padding: 2rem;
    border: solid .1rem var(--color-gray-mid);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.product-item-actions .actions-secondary {
    display: block;
}


.block.widget .product-item-info,
.page-products .product-item-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: auto;
}

.product-item-details,
.product.details.product-item-details {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.price-box span.price-label,
.product-item-details span.price-label {
    display: none;
}

.price-box.price-final_price {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.main-descrition-wrapper {
    margin-block-start: auto;
}

.product-item .price-box {
    margin: 0px 0 1rem;
}

.product-item-actions .actions-secondary>.action, 
.table-comparison .wishlist.split.button>.action.split, 
.product-items .wishlist.split.button>.action.split, 
.product-items .action.towishlist, 
.products.list.items .action.towishlist, 
.table-comparison .action.towishlist {
    display: none;
}

p.discount-message-tooltip {
    text-wrap: pretty;
    margin-bottom: 0;
    font-size: var(--text-small-size);
}

.modal-link a {
    text-decoration: underline;
    font-size: var(--text-small-size);
}


.discount-message-tooltip span.tooltip {
    display: inline-block;
}

.tooltip svg {
    height: 1.5rem;
}

.tooltip .tooltip-content {
    min-width: 15rem;
}

.product-item .price-box .price {
    font-size: var(--text-h2-size);
    color: var(--color-price);
    font-weight: var(--font-weight-bold);
}

.product-item .price-box .old-price .price {
    font-size: var(--text-small-size);
}

.flaghtml {
    position: absolute;
    z-index: 9;
    top: 0;
    right: 0;
    border: 1px solid var(--color-mid-gray);
    padding: 1rem;
    border-radius: .2rem;
}


@media only screen and (min-width: 768px) {

    .tooltip .tooltip-content {
        min-width: 20rem;
    }

    .product-item a.product-item-link,
    .products a.product-item-link {
        font-size: var(--text-h3-size);
        line-height: var(--text-h3-line-height);
    }

    p.discount-message-tooltip {
        font-size: var(--text-normal-size);
    }

    .modal-link a {
        font-size: var(--text-normal-size);
    }

}

/* Featured products */

.featured-products.hp-section {
    width: var(--width-content-max);
    max-width: var(--width-content-max-calc);
    margin: 2rem auto;
}

@media only screen and (min-width: 768px) {

    .featured-products {
        margin: 3rem auto 0;
    }

}

/* Sidebar */

.filter-options .count:before {
    content: '(';
    position: relative;
    left: .2em;
}

@media only screen and (min-width: 768px) {

    .sidebar.sidebar-main {
        background: var(--color-light-gray);
        border: unset;
        border-radius: 2rem;
    }


}



























































@media only screen and (min-width: 550px) {

    .widget-product-grid.product-items,
    ol.products.list.items.product-items {
        display: flex;

        justify-content: flex-start;
    }

    .widget-product-grid.product-items .product-item,
    .catalog-category-view  .products-grid .product-item {
        width: calc(31% - 1rem);
    }

    .page-products .product-item-info {
        width: 40rem;
        margin: auto;
    }

}

@media only screen and (min-width: 1150px) {

    .widget-product-grid.product-items {
        display: flex;
        gap: 2rem;
        justify-content: space-around;
    }
    

    ol.products.list.items.product-items {
        display: flex;
        gap: 4rem;
    }
    
    
}


/* Home page featured product and category grids */

.product-items .product-item {
    position: relative;
}

.products .product-items .product-item {
    text-align: left;
    width: calc((100% - 2rem) / 2);
}

.products .products-grid .sale-price-wrapper {
    display: flex;
    gap: 1rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    color: var(--color-price-old);
    align-items: center;
}


.block.widget .products-grid .product-item {
    margin-left: 0;
    width: calc((100% - 2rem) / 2);
}

@media only screen and (min-width: 640px) {

.page-layout-1column .block.widget .products-grid .product-item {
    margin-left: 2%;
    width: calc((100% - 4rem) / 3);
}

}

@media only screen and (min-width: 768px) {

    .page-products .products-grid .product-item, 
    .page-layout-1column .products-grid .product-item, 
    .page-layout-3columns .products-grid .product-item, 
    .page-products.page-layout-1column .products-grid .product-item, 
    .page-products.page-layout-3columns .products-grid .product-item {
        width: calc((100% - 8rem) / 3);
    }

    .products .products-grid .product-item {
        margin-left: 0;
        width: calc((100% - 6rem) / 4);
    }

    .page-layout-1column .block.widget .products-grid .product-item {
        margin-left: 0;
        width: calc((100% - 6rem) / 4);
    }

    .products .product-items .product-item {
        width: calc((100% - 8rem) / 3);
    }

}




