/* Valentine - imports.css - Copyright (c) 2002-2022 Open2b Software Snc. */

/*

    'imports.css' contains CSS properties used by the files of the 'imports'
    directory.

    || Banners
    || Sort
    || Products
    || Tier-prices
    || Stars

*/

/* || Banners - 'imports/banners.html' */

.banners.design-slideshow .banner { 
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    visibility: hidden;
}

.banners.design-slideshow .banner:first-child { 
    display: block;
    position: static;
    visibility: inherit;
}

.banners.design-slideshow .banner img { 
    height: auto;
    width: 100%;
}

.banners.design-slideshow .design-slideshow-pagination { 
    bottom: 20px;
    display: block;
    height: fit-content!important;
    width: fit-content!important;
    position: absolute;
    z-index: 2;
    right: 20px;
    display: flex;
    justify-content: center;
    column-gap: 10px;
}

.banners.design-slideshow .design-slideshow-pagination span { 
    background: var(--bg-primary);
    border-radius: 100%;
    display: flex;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.banners.design-slideshow .design-slideshow-pagination span a { 
    background: var(--border-strong);
    border-radius: 100%;
    cursor: pointer;
    display: block;
    height: 30px;
    width: 30px;
    border: 10px solid var(--bg-primary);
}

.banners.design-slideshow .design-slideshow-pagination span.current a { 
    background: var(--color-primary);
    cursor: auto;
}

@media (max-width: 768px) {

    .banners.design-slideshow .design-slideshow-pagination span { 
        width: 20px;
        height: 20px;
    }
    
    .banners.design-slideshow .design-slideshow-pagination span a { 
        height: 20px;
        width: 20px;
        border: 5px solid var(--bg-primary);
    }

}

/* || Sort - 'imports/sort.html' */

.sort {
    width: 100%;
    padding-bottom: 15px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sort > div {
    display: flex;
    align-items: center;
}

.sort .views {
    width: 50%;
    -webkit-user-select: none;
    user-select: none;
}

.sort .views i {
    color: var(--text-primary);
    opacity: .3;
    cursor: pointer;
}

.sort .views i.selected {
    opacity: 1;
}

.sort .views i[data-column="2"],
.sort .views i[data-column="3"],
.sort .views i[data-column="4"] {
    transform: rotate(90deg);
}

.sort .views i[data-column="2"] {
    font-size: 26px;
    position: relative;
    bottom: 0.5px;
}

.sort .views i[data-column="4"] {
    margin-left: 5px;
}

.sort .views .count {
    padding-left: 10px;
}

.sort .sort-by {
    width: 50%;
    justify-content: right;
}

.sort .sort-by form {
    margin-left: 10px;
}

.sort.not-found {
    border: 1px solid var(--color-error);
    padding: 0;
    border-radius: 5px;
    color: var(--color-error);
    width: 100%;
    height: 60px;
    justify-content: center;
    align-items: center;
}

.sort.not-found div {
    padding: 0
}

.sort.not-found .views {
    padding: 0;
    width: 100%;
    justify-content: center;
    border-right: 0;
}

@media (max-width: 1200px) {

    .sort {
        margin-top: 10px;
        padding-bottom: 25px;
    }

    .sort > div {
        height: 100%;
        max-height: 35px;
    }

    .sort .views {
        justify-content: end;
        padding-right: 20px;
        border-right: 1px solid var(--border-strong);
    }

    .sort .sort-by {
        justify-content: start;
        padding-left: 20px;
        border-left: 1px solid var(--border-strong);
    }

}

@media (max-width: 1024px) {

    .sort .views i[data-column="4"] {
        display: none;
    }

}

@media (max-width: 768px) {

    .sort > div {
        height: unset;
        max-height: unset;
    }

    .sort .views {
        border: 0;
        padding-right: 5px;
    }

    .sort .sort-by {
        flex-flow: column;
        border: 0;
        padding-left: 5px;
    }

    .sort .views i[data-column="3"] {
        display: none;
    }

}

@media (max-width: 480px) {

    .sort {
        padding-left: 0;
        flex-flow: column;
        margin-top: 40px;
        row-gap: 20px;
        border-bottom: 0;
    }

    .sort > div {
        padding: 0!important;
        justify-content: center!important;
        width: 100%!important;
    }

    .sort .views .count {
        padding-left: 0;
        width: 100%;
        text-align: center;
    }

    .sort .views i[data-column="2"],
    .sort .views i[data-column="1"] {
        display: none;
    }

    .sort .sort-by select {
        min-width: unset;
    }

}

/* || Products - 'imports/products.html' */

.products {
    display: grid;
    justify-content: center;
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    margin: 20px 0;
}

.products[data-column="1"] {
    grid-template-columns: 1fr;
}

.products[data-column="2"] {
    grid-template-columns: 1fr 1fr;
}

.products[data-column="3"] {
    grid-template-columns: 1fr 1fr 1fr;
}

.products[data-column="4"] {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.products .product-card {
    position: relative;
    padding: 20px;
    border-radius: 3px;
}

.products[data-column="2"] .product-card,
.products[data-column="3"] .product-card,
.products[data-column="4"] .product-card {
    text-align: center;
}

.products .product-card.show-card-border {
    border: 1px solid var(--border)
}

.products .product-card.show-card-background {
    background-color: var(--bg-secondary);
}

.products .product-card .image {
    position: relative;
    width: fit-content;
    margin: auto;
}

.products .product-card .info .description {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.products .product-card .info .name a {
    padding: 5px;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    margin: 0;
    display: block;
    width: 100%;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    margin-bottom: 5px;
}

.products .product-card .info .name a::first-letter {
    text-transform: capitalize;
}

.products .product-card .info .price {
    text-align: center;
    display: flex;
    justify-content: center;
    font-size: 15px;
    align-items: center;
    margin-bottom: 5px;
    flex-flow: row wrap;
}

.products .product-card .info .price div {
    margin-top: 0!important;
    padding: 0 5px;
}

.products .product-card .info .price .list-price span {
    opacity: .5;
    font-size: 15px;
    text-decoration: line-through;
}

.products .product-card .info .price .sell-price {
    position: relative;
    bottom: 3px;
}

.products .product-card .info .price .sell-price span {
    font-weight: 500;
    font-size: 19px;
}

.products .product-card .info .btn {
    display: none;
    text-align: center;
}

.products .product-card .info .btn input[type=submit] {
    padding: 12px 30px;
}

.products .product-card .info .not-available {
    color: var(--color-primary);
    padding: 8px 18px;
    text-align: center;
    border: 1px solid var(--color-primary);
    width: max-content;
    margin: 10px auto 0 auto;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    border-radius: 3px;
}

.products .product-card .add-to-wish-list-btn,
.products .product-card .remove-from-wish-list-btn {
    position: absolute;
    right: .5px;
    top: 10px;
    transform: translateX(50%);
}

.products .product-card.has-discount-box .add-to-wish-list-btn,
.products .product-card.has-discount-box .remove-from-wish-list-btn {
    top: 50px;
}

.products .product-card .add-to-wish-list-btn {
    display: none;
}

.products .product-card.has-discount-box .discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-strong);
    padding: 5px 10px;
    border-radius: 3px;
    opacity: .8;
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 500;
}

.products-pagination {
    width: 100%;
    padding: 15px 0;
    height: 75px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    flex-flow: row wrap;
}

.products-pagination > b {
    background-color: var(--color-primary);
    color: var(--text-onaccent);
    border-radius: 29px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: -5px;
    margin-left: -5px;
}

/* 1-column related */

.products[data-column="1"] .product-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas:
        "image info";
    grid-column-gap: 40px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.products[data-column="1"] .product-card .image {
    grid-area: image;
}

.products[data-column="1"] .product-card .info {
    grid-area: info;
}

.products[data-column="1"] .product-card .info > div,
.products[data-column="1"] .product-card .info .name a {
    text-align: left;
    justify-content: left;
}

.products[data-column="1"] .product-card .info .description {
    display: block;
}

.products[data-column="1"] .product-card .info .btn {
    margin-top: 10px;
}

.products[data-column="1"] .product-card .not-available {
    margin-left: unset;
}

/* card buttons animations */

@media (min-width: 769px) and (hover: hover) {

    .products .product-card .info .btn {
        display: block;
    }

    .products[data-column="2"] .product-card,
    .products[data-column="3"] .product-card,
    .products[data-column="4"] .product-card {
        height: max-content;
        overflow: hidden;
    }

    /* the card btn is moved beyond the bottom edge of the product card */
    .products[data-column="2"] .product-card .btn,
    .products[data-column="3"] .product-card .btn,
    .products[data-column="4"] .product-card .btn {
        position: absolute;
        bottom: -50px;
        left: 50%;
        transform: translate(-50%, 0);
        transition: bottom .2s ease-out;
    }

    /* when hovering on the product card, the card btn appears from the bottom */
    .products[data-column="2"] .product-card.animatable:hover .btn,
    .products[data-column="3"] .product-card.animatable:hover .btn,
    .products[data-column="4"] .product-card.animatable:hover .btn {
        bottom: 10px;
    }

    /* when hovering on the product card, the last element before the card btn
    is hidden to prevent overlapping */
    .products[data-column="2"] .product-card.animatable:hover .info > div:nth-last-child(2),
    .products[data-column="3"] .product-card.animatable:hover .info > div:nth-last-child(2),
    .products[data-column="4"] .product-card.animatable:hover .info > div:nth-last-child(2) {
        opacity: 0;
        transition: opacity .5s;
    }

    /* hide the wish list btn */
    .products .product-card .add-to-wish-list-btn,
    .products .product-card .remove-from-wish-list-btn {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateX(50%) scale(0);
        transition: opacity .25s ease-in-out, transform .25s ease-in-out, visibility .25s ease-in-out;
        will-change: opacity, transform, visibility;
    }

    /* show the wish list btn while hovering */
    .products .product-card:hover .add-to-wish-list-btn,
    .products .product-card:Hover .remove-from-wish-list-btn  {
        visibility: visible;
        opacity: 1;
        transform: translateX(50%) scale(1);
        transition: opacity .4s cubic-bezier(0, 1, .4, 1), transform .4s cubic-bezier(.18, 1.25, .4, 1), visibility .4s linear;
    }

    /* add a border to the image when hovering */
    .products .product-card .image img {
        transition: border .5s;
        border-radius: 3px;
        border: 1px solid transparent;
        padding: 5px;
    }

    .products .product-card:hover .image img {
        border: 1px solid var(--border);
    }


}

@media (max-width: 1024px) {

    .products[data-column="4"] {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

@media (max-width: 768px) {

    .products[data-column="3"],
    .products[data-column="4"] {
        grid-template-columns: 1fr 1fr;
    }

    .products-pagination {
        padding: 0 20px;
    }

}

@media (max-width: 480px) {

    .products[data-column="2"],
    .products[data-column="3"],
    .products[data-column="4"] {
        grid-template-columns: 1fr;
    }

    .products .product-card {
        display: flex!important;
        flex-flow: column;
        align-items: center!important;
        padding: 20px!important;
    }

    .products .product-card .info > div,
    .products .product-card .info .name a {
        text-align: center!important;
        justify-content: center!important;
    }

    .products .product-card .image {
        text-align: center;
    }

    .products .product-card .image img {
        max-width: 170px;
    }

    .products .product-card .info .description {
        display: block;
    }

    .products[data-column="1"] .product-card .info > div,
    .products[data-column="1"] .product-card .info .name a {
        text-align: left;
        justify-content: left;
    }

}

/* || Tier-prices - 'imports/tier-prices.html' */

.tier-prices {
    display: table;
    font-size: 13px;
    padding: 5px;
    width: 100%;
}

.tier-prices > div {
    display: table-row;
}

.tier-prices > div > div {
    display: table-cell;
    padding: 4px 12px;
    text-align: center;
    white-space: nowrap;
}

.tier-prices > div > div:first-child {
    color: var(--text-primary);
}

.tier-prices > div > div .tier-to {
    padding-left: 0.3em;
}

/* || Stars - 'imports/stars.html' */

.stars {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.stars > i {
    color: var(--color-rating-stars);
    display: none;
}

.stars.rating-1 > i:nth-child(1) {
    display: block;
}

.stars.rating-2 > i:nth-child(1),
.stars.rating-2 > i:nth-child(2) {
    display: block;
}

.stars.rating-3 > i:nth-child(1),
.stars.rating-3 > i:nth-child(2),
.stars.rating-3 > i:nth-child(3) {
    display: block;
}

.stars.rating-4 > i:nth-child(1),
.stars.rating-4 > i:nth-child(2),
.stars.rating-4 > i:nth-child(3),
.stars.rating-4 > i:nth-child(4) {
    display: block;
}

.stars.rating-5 > i:nth-child(1),
.stars.rating-5 > i:nth-child(2),
.stars.rating-5 > i:nth-child(3),
.stars.rating-5 > i:nth-child(4),
.stars.rating-5 > i:nth-child(5) {
    display: block;
}
