:root {
    --side-cart-width: 300px;
}

/* Product search */

#productFilterMobileToggler {
    transition: all 0.3s ease;
    border: 1px solid var(--white);
}

#productFilterMobileToggler.floating {
    position: fixed;
    right: 0;
    top: 40%;
    z-index: 1020;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#productFilterMobileToggler.floating .help-text {
    display: none;
}

.searching-overlay {
    transition: all 0.3s ease;
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    color: var(--light);
    z-index: 100;
}

/* Category nav */

#sideNav .navbar-nav .navbar-nav .nav-link {
    padding-left: calc(var(--side-nav-padding-x) + 1rem);
}

#sideNav .navbar-nav .navbar-nav .navbar-nav .nav-link {
    padding-left: calc(var(--side-nav-padding-x) + 2rem);
}

#sideNavContent .nav-link.active .nav-open-icon,
#sideNavContent .nav-link:not(.active) .nav-closed-icon {
    display: inline-block;
}

#sideNavContent .nav-link:not(.active) .nav-open-icon,
#sideNavContent .nav-link .nav-closed-icon {
    display: none;
}

#sideNav .nav-link {
    padding: 1rem var(--side-nav-padding-x);
    color: var(--white);
    font-size: 1rem;
    border-bottom: 2px solid var(--white);
    display: flex;
}

#sideNav .nav-link.active {
    background-color: var(--color-green);
}

#sideNav .product-items .nav-link {
    background-color: var(--color-secondary);
}

#sideNav .product-items .nav-link.active {
    background-color: var(--highlight-secondary);
}

/* Side cart */

#sideCart {
    height: 100vh;
    width: var(--side-cart-width);
    position: fixed;
    z-index: 5;
    right: calc(var(--side-cart-width) * -1);
    top: 0;
    overflow-x: hidden;
    transition: all 0.5s ease;
    background-color: var(--white);
    z-index: 1030;
}

.ccm-toolbar-visible #sideCart {
    top: 48px;
    height: calc(100vh - 48px);
}

#sideCart.open {
    right: 0;
    -webkit-box-shadow: -5px 0px 10px 0px rgba(30, 30, 30, 0.3);
    -moz-box-shadow: -5px 0px 10px 0px rgba(30, 30, 30, 0.3);
    box-shadow: -5px 0px 10px 0px rgba(30, 30, 30, 0.3);
}

.product-card-cart {
    border-bottom: 1px solid var(--dark);
    padding-bottom: 1rem;
}

.product-card-cart .product-image img {
    aspect-ratio: 1/1;
    max-width: 100%;
    object-fit: contain;
}

#sideCart ::-webkit-scrollbar {
    width: 7px;
}

#sideCart ::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
}

/* Product card */

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--dark-shadow);
    transition: box-shadow 0.3s ease;
}

.product-card:hover,
.product-card:active,
.product-card:focus {
    box-shadow: var(--dark-shadow-hover);
}

.product-card a {
    width: 100%;
    display: inline-block;
    text-decoration: none;
    color: var(--dark);
    position: relative;
}

.product-card h3 {
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    word-break: break-word;
}

.product-card .product-code {
    font-size: 0.8rem;
}

.product-card a:hover .btn-secondary,
.product-card a:focus .btn-secondary,
.product-card a:active .btn-secondary {
    background-color: var(--color-primary);
}

.product-card .add-to-cart-button {
    border-radius: 0;
    width: 100%;
}

.product-card .bg-img {
    aspect-ratio: 1 / 1;
}

.product-card .pricing {
    font-size: 2rem;
    font-weight: 700;
}

.product-card .saldo {
    font-size: 0.75rem;
}

.product-card .ribbon {
    position: absolute;
    font-size: 1rem;
    top: 15px;
    left: -50px;
    width: 200px;
    padding: 3px 0;
    text-align: center;
    font-weight: 600;
    transform: rotate(-30deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.possible-to-order-color {
    border-radius: 50%;
    height: 10px;
    width: 10px;
    display: inline-block;
}

.page-template-webshop-product-template .possible-to-order-color {
    height: 14px;
    width: 14px;
}

.bootbox.modal.fade.bootbox-confirm.show {
    background-color: rgb(25 22 22 / 70%);
}

.product-price {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.1rem;
}

/* Make product pages hero smaller */

.page-template-webshop-product-template #heroCarouselIndicators .carousel-item {
    height: auto;
    min-height: 150px;
}

.page-template-webshop-product-template #heroCarouselIndicators .carousel-item h1 {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 0;
}

/* Product image selection */

#productImageViewArea {
    aspect-ratio: 5/4;
    background-color: var(--lightgray);
    box-shadow: var(--dark-shadow);
    transition: all 0.3s ease;
}

#productImageViewArea:hover,
#productImageViewArea:active,
#productImageViewArea:focus {
    box-shadow: var(--dark-shadow-hover);
}

#zoomInImage {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1rem;
    color: var(--color-primary);
    opacity: .6;
}

.view-this-image {
    aspect-ratio: 1/1;
    width: 100%;
    background-color: var(--white);
    border: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: var(--border-radius);
    position: relative;
}

.view-this-image .parent-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
}

#fullscreenCarouselModal .carousel-control-next-icon,
#fullscreenCarouselModal .carousel-control-prev-icon {
    background-color: var(--dark-overlay);
}

/* Full screen modal */
#fullscreenCarouselModal .modal-dialog {
    max-width: 100%;
    height: 100%;
    margin: 0;
}

#fullscreenCarouselModal .modal-content {
    height: 100%;
    background-color: var(--dark-overlay);
    border: none;
    border-radius: 0;
}

#fullscreenCarouselModal .carousel-item img {
    object-fit: contain;
    width: 100%;
    height: 100vh;
    display: block;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    z-index: 9999;
    background: none;
    border: none;
}

.view-this-image.active .parent-overlay {
    display: none;
}

.pickup-point-list .list-group-item {
    cursor: pointer;
}

#productInfoContent table.table {
    width: 100%!important;
}

#productsTable img {
    width: 60px;
    height: 60px;
}

.description-area {
    height: 100px;
    overflow: hidden;
    transition: height 0.3s ease;
    margin-bottom: 10px;
    position: relative;
}

.description-area:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

/* Mobile */

@media (max-width: 991px) {
    #sideCart {
        max-width: 95vw;
    }

    .product-card h3 {
        font-size: 0.8rem;
    }

    .product-card .pricing {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .product-card .h6 {
        font-size: 1rem;
    }

    .page-template-webshop-product-template .possible-to-order-color {
        height: 10px;
        width: 10px;
    }

    .product-card .add-to-cart-button {
        font-size: 0.8rem;
    }
}