/* Product Details CSS */

.product-slide-wrapper {
    position: relative;
    z-index: 1;

    .video-btn {
        position: absolute;
        z-index: 100;
        top: 1rem;
        left: 1rem;
        width: 2rem;
        height: 2rem;
        background-color: rgba(255, 255, 255, 0.75);
        border-radius: 50%;
        color: $danger;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
    right: 0;
    text-align: center;
    padding-right: 0;
    width: 100%;
    top: -30px !important;
    width: 1.5rem;
    height: 1.5rem;
    background-color: $danger;
    line-height: 24px;
    border-radius: .25rem;
    font-size: 24px;
}

.mfp-image-holder .mfp-close {
    top: 0 !important;
    border-radius: .25rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.125);
}

.mfp-bg {
    background: $heading;
    opacity: 0.5;
}

.mfp-figure::after {
	background: $white;
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
	border-radius: .25rem;
}

.mfp-iframe-scaler iframe {
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
	background: $heading;
}

.product-slides {
    position: relative;
    z-index: 1;
    margin-bottom: -40px;

    .owl-prev,
    .owl-next {
        position: absolute;
        width: 30px;
        height: 30px;
        background-color: $white !important;
        z-index: 10;
        top: 50%;
        margin-top: -15px;
        left: 15px;
        font-size: 20px;
        color: $primary;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;

        &.disabled {
            opacity: 0;
            visibility: hidden;
        }
    }

    .owl-next {
        left: auto;
        right: 15px;
    }
}

.product-title-meta-data {
    border-top-left-radius: 2rem;
    padding-top: 1.5rem !important;

    &::after {
        position: absolute;
        content: "";
        background-image: url(img/core-img/curve.png);
        top: -120px;
        width: 142px;
        height: 121px;
        background-repeat: no-repeat;
        right: 0;
        z-index: auto;
    }

    .p-wishlist-share {
        flex: 0 0 80px;
        width: 80px;
        max-width: 80px;
        text-align: right;
    }
}

.product-description {
    position: relative;
    z-index: 1;

    .sale-price {
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 0.5rem;
        color: $danger;

        span {
            margin-left: 0.25rem;
            color: $text;
            text-decoration: line-through;
            font-size: 14px;
        }
    }

    .ratings {
        i {
            color: $warning;
            font-size: 12px;
        }

        span {
            font-size: 12px;
            color: $text;
        }
    }

    .total-result-of-ratings {
        span:first-child {
            line-height: 1;
            background-color: $danger;
            padding: 3px 6px;
            color: $white;
            display: inline-block;
            border-radius: .25rem;
            font-size: 12px;
            margin-right: 0.25rem;
            font-weight: 500;
        }

        span:last-child {
            color: $success;
            font-size: 12px;
            font-weight: 600;
        }
    }
}

.cart-form {
    position: relative;
    z-index: 1;
    display: flex;

    .form-control {
        max-width: 50px;
        height: 35px;
        margin-right: 0.5rem;
        margin-left: 0.5rem;
        text-align: center;
        font-weight: 500;
        padding: 0.375rem 0.5rem;
    }

    .quantity-button-handler {
        width: 35px;
        height: 35px;
        background-color: $light;
        border: 1px solid $border;
        color: $heading;
        line-height: 33px;
        font-size: 1.25rem;
        text-align: center;
        border-radius: 0.25rem;
        cursor: pointer;
        transition-duration: 500ms;

        &:hover {
            color: $primary;
        }
    }
}

.p-wishlist-share {
    a {
        display: inline-block;
        color: $danger;
        font-size: 1.5rem;
    }
}

.choose-color-radio {
    .form-check-input {
        border: 0;
        background-color: $light;

        &.blue {
            background-color: $primary;
        }

        &.yellow {
            background-color: $warning;
        }

        &.green {
            background-color: $success;
        }

        &.purple {
            background-color: $danger;
        }

        &:checked {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
        }
    }
}

.choose-size-radio {
    position: relative;
    z-index: 1;
    text-align: right;

    .form-check-input {
        background-color: $light;
        border-radius: 0.25rem;

        &:checked {
            background-color: $danger;
            border-color: $danger;
            background-image: none;
        }
    }

    .form-check-label {
        font-size: 12px;
        font-weight: 700;
    }
}

.single-user-review {
    border-bottom: 2px dashed $border;
    margin-bottom: 1rem;
    padding-bottom: 1rem;

    &:last-child {
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .user-thumbnail {
        margin-top: 0.5rem;
        flex: 0 0 40px;
        width: 40px;
        max-width: 40px;
        margin-right: .5rem;

        img {
            border-radius: 50%;
        }
    }

    .rating-comment {
        .rating {
            font-size: 12px;
            color: $warning;

            i {
                margin-right: 1px;
            }
        }

        .name-date {
            display: block;
            font-size: 12px;
        }

        .review-image {
            display: inline-block;
            margin-right: 0.5rem;

            img {
                max-width: 50px;
            }
        }
    }
}

.ratings-submit-form {
    position: relative;
    z-index: 1;

    textarea.form-control {
        height: 80px;
        font-size: 14px;
    }

    .stars {
        background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAABaCAYAAACv+ebYAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMDMvMTNJ3Rb7AAACnklEQVRoge2XwW3bMBSGPxa9NxtIGzTAW8DdRL7o3A0qb+BrdNIm9QAm0G7gbJBMwB5MoVJNUSRFIXGqHwhkmXr68hOPNH9ljOEt9OlNqBs4RlrrSmtdpdZ/Ti0EGnvtUoqTHFunBVCkuk6d6mbi83rggdteSa5THDeB3+UDO9z2inatXFum1roESuAReAB29vp15n2/gRfgZK+/gIuIXLxgrfUO+Bnzn0fom4ic+pvRVNuB/QrQ/RB6A7bwLjN8b985krO5MsKd0ElwJvgk1AteCPdCYWI5/SutddQxRUTU3DOzG4hd01EKqQnZuaLBITUh4F0CeLYm5CDw6PjuFTjaz9+BLwE1I8VO9StwAEoRaUSkseMHO+aqcWq2qwcdfQCOIvIy8dwDV/c/YL6zvWDbnQ3QuH5hltQEreM1dH/n6g28gT8eWLVUqqVKrb+vtGidFkCR6vp+0uLAba8k1/eRFh1ue0W7dv4sqpaSjGnR1Fy8YNWyY8W0aGpO/c1oqu3AKmlxCL0BW3iXGb637xzJ2VwZ4U7oJDgTfBLqBS+Ee6EQeMpULVFHUVOzPC3aNR2lkJotLbr0vtKiqWlMTcNaaXHQ0QfgaGqcaVG1jNLibGcbYyb/eDIlT6bjyZS+51JqtrS4gTfw/wzWqkKrKrU8fQPR6gKAmDKlPM3x1WkBFKmu0xxf3fZR5jnFdbzjv257JbmOdzx22yvadZzjW7e9ol27HWtVkjEtIubiB2u1Y8W0iJhTfzOe6uvAKmlxCL0FX+FdZvjevnMkd3Plgzuh0+A88EmoH7wM7oVC6AaiVdwuI2Z5WrRrOk4BNVtadOl9pUXENIhpWCstDjr6ABwR40yLaDVKi7Od7U1/Z0pzpjNngtNiaM2WFj8++A+motm0NTqjmwAAAABJRU5ErkJggg==") repeat-x 0 0;
        width: 150px;

        &:before,
        &:after {
            display: table;
            content: "";
        }

        &:after {
            clear: both;
        }

        input[type="radio"] {
            position: absolute;
            opacity: 0;

            &.star-5:checked~span {
                width: 100%;
            }

            &.star-4:checked~span {
                width: 80%;
            }

            &.star-3:checked~span {
                width: 60%;
            }

            &.star-2:checked~span {
                width: 40%;
            }

            &.star-1:checked~span {
                width: 20%;
            }
        }

        label {
            display: block;
            width: 30px;
            height: 30px;
            margin: 0 !important;
            padding: 0 !important;
            text-indent: -99999rem;
            float: left;
            position: relative;
            z-index: 10;
            background: transparent !important;
            cursor: pointer;

            &:hover~span {
                background-position: 0 -30px;
            }

            &.star-5:hover~span {
                width: 100% !important;
            }

            &.star-4:hover~span {
                width: 80% !important;
            }

            &.star-3:hover~span {
                width: 60% !important;
            }

            &.star-2:hover~span {
                width: 40% !important;
            }

            &.star-2:hover~span {
                width: 20% !important;
            }
        }

        span {
            display: block;
            width: 0;
            position: relative;
            top: 0;
            left: 0;
            height: 30px;
            background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAABaCAYAAACv+eb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==") repeat-x 0 -60px;
            transition: width 0.5s;
        }
    }
}

.offline-area-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: calc(100vh - 108px);

    i {
        font-size: 3rem;
        display: block;
        margin-bottom: 1rem;
    }
}

.sales-offer-content {
    .sales-end {
        flex: 0 0 60%;
        max-width: 60%;
        width: 60%;
    }

    .sales-volume {
        flex: 0 0 40%;
        max-width: 40%;
        width: 40%;
    }

    .sales-volume {
        .progress {
            border-radius: 100px;
        }
    }
}

.sales-end-timer {
    li {
        line-height: 1;
        margin-left: 0.5rem;
        color: $text;
        font-weight: 500;
        font-size: 1rem;

        &:first-child {
            margin-left: 0;
        }
    }
}

.product-catagories {
    a {
        padding: .425rem .5rem;
        background-color: $white;
        border-radius: 6px;
        color: $heading;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
            flex: 0 0 1.25rem;
            width: 1.25rem;
            max-width: 1.25rem;
            margin-right: .25rem;
        }

        &:hover,
        &:focus {
            color: $danger;
        }
    }
}

.single-product-slide,
.blog-details-post-thumbnail {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 380px;
    background-position: center center;
    background-size: cover;

    @media #{$breakpoint-xs-landscape} {
        height: 450px;
    }

    @media #{$breakpoint-md} {
        height: 500px;
    }

    @media #{$breakpoint-lg} {
        height: 520px;
    }

    @media #{$breakpoint-xl} {
        height: 600px;
    }
}

.choose-color-wrapper {
    .form-check-input {
        width: 1.125rem;
        height: 1.125rem;
    }
}

.single-related-product-slide {
    border-radius: 6px;
    border: 1px solid $border;
}