.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--bg);
    max-height: 42px;
}

.btn svg {
    width: 1.5rem;
    fill: var(--bg);
}

a {
    transition: color .3s ease;

    &:hover {
        color: var(--primary);
    }
}

.products.row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
}

#products .products,
.featured-products .products {
    justify-content: flex-start;
}

.products.row .product {
    padding: 0;
}

.product-miniature {
    position: relative;
    display: flex;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--tertiary);
    transition: border .3s ease;

    &:hover {
        border-color: var(--primary);
    }
}

.product-miniature .thumbnail-top {
    z-index: 0;
    width: 30%;
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid #f9f9f9;
}

.product-miniature .thumbnail-container {
    margin: 0;
}

.product-miniature .product-description {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: none;

    &::after {
        display: none;
    }
}

.product-reference {
    display: block;
    font-size: .8rem;
    color: var(--primary);
    line-height: 1;
}

.product-reference strong {
    font-weight: 500;
    color: var(--font-primary);
}

.product-miniature .product-title,
.product-miniature .product-title a {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--font-primary);
    padding: 0;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.1;
    text-align: left;
}

.product-miniature .product-reference,
.product-miniature .product-title {
    margin-left: calc(30% + .75rem);
}

.product-miniature .product-title {
    min-height: 4.4rem;
}



.product-prices {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    gap: .5rem 0;
    margin: 0;
}

.product-prices .product-discount {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .75rem;
    background: var(--tertiary);
    margin: 0;
}

.product-prices .product-discount span {
    color: var(--primary);
    font-size: 1rem;
}

#product section.product-content .product-price,
.product-prices .product-price {
    padding: .75rem;
    margin: 0;
    background: var(--tertiary);
}

.product-prices .product-price,
.product-prices .product-price .current-price {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.product-prices .product-price.has-discount {
    width: 50%;
}

.product-prices span {
    color: var(--primary);
    margin: 0;
    padding: 0;
}

.price-tax-inc {
    font-size: .825rem;
    font-weight: 400;
}

.product-miniature .price-tax-inc {
    display: none;
}

.product-prices .unit-price {
    width: 100%;
    display: flex;
    gap: .5rem;
    margin: 0;
}

.product-prices .unit-price span {
    width: calc(50% - .25rem);
    display: flex;
    justify-content: center;
    gap: .25rem;
    flex-direction: column;
    font-size: .825rem;
    line-height: 1.1;
    background: #f9f9f9;
    padding: .5rem;
    margin: 0;
}

.product-prices .unit-price span {
    color: var(--font-primary);
}

#product section.product-content .product-quantity,
.product-add-to-cart {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;

    &:after {
        display: none;
    }
}

.product-quantity {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
}

.product-quantity .qty,
.product-quantity .add {
    margin: 0;
}


#product section.product-content .product-quantity .bootstrap-touchspin,
.product-quantity .bootstrap-touchspin {
    position: relative;
    padding: 0 1.5rem;
    border: 1px solid var(--primary);
}

.product-quantity #quantity_wanted,
.product-quantity .bootstrap-touchspin input {
    border: none;
    border-left: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    text-align: center;
    height: 40px;
    color: var(--primary);
}

.product-quantity .input-group-btn-vertical {
    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    left: 0;
    right: 0;
    z-index: 1;
}

.product-quantity .input-group-btn-vertical .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 1.5rem;
    height: 40px;
    border: none;
    outline: none;
    transition: all .3s ease;

    &:hover {
        background: var(--tertiary);
    }
}

.bootstrap-touchspin .input-group-btn-vertical i,
.bootstrap-touchspin .input-group-btn-vertical .touchspin-up::after,
.bootstrap-touchspin .input-group-btn-vertical .touchspin-down::after {
    text-align: center;
    line-height: 38px;
    font-size: 1.15rem;
    color: var(--primary);
}

.bootstrap-touchspin .input-group-btn-vertical .touchspin-up::after {
    content: '\e145';
}

.bootstrap-touchspin .input-group-btn-vertical .touchspin-down::after {
    content: '\e15b';
}

.product-add-to-cart .add,
.product-add-to-cart .btn-primary {
    width: 100%;
    margin: 0;
}

.btn-primary {
    background: var(--primary);

    &:hover {
        background: var(--font-primary);
    }

}

.product-add-to-cart .btn-primary {
    background: var(--primary);
    color: var(--bg);
    transition: all .3s ease;
    padding: .5rem 0;

    &:hover {
        background: var(--font-primary);
    }
}

#content-wrapper {
    padding: 0;
}

@media screen and (min-width: 576px) {
    #wrapper .container {
        width: 100%;
        padding: 0;
    }

    .products.row .product {
        width: calc(50% - .75rem);
    }
}

@media screen and (min-width: 768px) {
    .products.row .product {
        width: calc(33.33% - 1rem);
    }

    .product-miniature .thumbnail-top {
        position: relative;
        width: 100%;
        margin-bottom: .5rem;
    }

    .product-miniature .product-reference {
        font-size: .9rem;
        margin: 0;
    }

    .product-miniature .product-title {
        min-height: 3.3rem;
        margin: 0;
    }

    .product-prices .unit-price {
        flex-direction: column;
    }

    .product-prices .unit-price span {
        width: 100%;
    }
}

@media screen and (min-width: 992px) {}

@media screen and (min-width: 1200px) {
    .products.row .product {
        width: calc(25% - 1.15rem);
    }
}

@media screen and (min-width: 1400px) {}