/**
 * Bizzview Quick View - Frontend Styles
 * 
 * Main stylesheet for the Quick View plugin frontend.
 * 
 * @package Bizzview_Quick_View
 * @since 1.0.0
 */

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes bizzview-spinner {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes bizzview-spinner {
    to {
        -webkit-transform: rotate(360deg);
    }
}

/* ==========================================================================
   Quick View Button
   ========================================================================== */
.bizzview-btn-link{
    text-decoration: none;
    display: block;
}
.bizzview-btn-button {
    cursor: pointer;
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    border: 1px solid #222;
    background-color: transparent;
    color: #222;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.bizzview-btn-button:hover {
    background-color: #222;
    color: #fff;
}

/* ==========================================================================
   Popup Container
   ========================================================================== */

.bizzview-popup {
    position: relative;
    width: 90%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
    max-height: 460px;
    box-sizing: border-box;
    overflow: hidden;
}

.bizzview-popup *,
.bizzview-sidebar * {
    box-sizing: border-box;
}

.bizzview-open .select2-container {
    z-index: 99999969;
}

div#bizzview-popup.bizzview-sidebar.bizzview-position-right{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
div#bizzview-popup.bizzview-sidebar.bizzview-position-left{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
#bizzview-popup, .bizzview-popup, .bizzview-sidebar {
    background-color: white;
}

/* ==========================================================================
   Product Container
   ========================================================================== */

.bizzview-product {
    position: relative;
    overflow: hidden;
}

.bizzview-product > .product {
    display: flex !important;
    float: none !important;
}

.bizzview-product > .product > div {
    width: 50% !important;
    float: none !important;
    margin: 0 !important;
    height: 460px;
    overflow: auto;
}
.bizzview-product .bizzview-thumbnails .slick-initialized .slick-slide{display: flex;}
/* ==========================================================================
   Thumbnails
   ========================================================================== */

.bizzview-thumbnails {
    outline: none;
    width: 460px;
    max-height: 460px;
    text-align: center;
    position: relative;
    /* background-color: #f9f9f9; */
}

.bizzview-images {
    width: 100% !important;
    height: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bizzview-thumbnail {
    display: flex;
    height: 100%;
    justify-content: center;
}

.bizzview-thumbnails img {
    display: block;
    object-fit: contain;
    object-position: center;
    vertical-align: middle;
    max-height: 460px;
    max-width: 100%;
    margin: auto;
    border-radius: 0;
}

/*ajax add to cart */
.cart .single_add_to_cart_button{
    margin-right: 10px;
}

/* Slick Carousel */
.bizzview-thumbnails .slick-slide {
    outline: none;
    max-height: 100%;
}

.bizzview-thumbnails .slick-list {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 100%;
    position: relative;
}

.bizzview-thumbnails .slick-track {
    display: flex;
    align-items: center;
    max-height: 460px;
}

/* Slick Dots */
.bizzview-thumbnails .slick-dots {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    text-align: center;
    position: absolute;
    left: 0;
    bottom: 10px;
    z-index: 8;
    list-style: none;
}

.bizzview-thumbnails .slick-dots li {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.bizzview-thumbnails .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 16px;
    height: 16px;
    padding: 5px;
    margin: 0;
    text-align: center;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    opacity: 0.5;
}

.bizzview-thumbnails .slick-dots li.slick-active button {
    opacity: 1;
}

.bizzview-thumbnails .slick-dots li button:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #000000;
}

.bizzview-thumbnails .slick-dots li button:focus {
    outline: none;
}

/* Slick Arrows */
.bizzview-thumbnails .slick-arrow {
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0;
    color: #222;
    background-color: transparent;
    border-radius: 0;
    border: none !important;
    z-index: 8;
    cursor: pointer;
}

.bizzview-thumbnails .slick-arrow:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
}

.bizzview-thumbnails .slick-arrow:before {
    font-family: "feather";
    font-size: 24px;
    line-height: 44px;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bizzview-thumbnails .slick-arrow:focus {
    outline: none;
}

.bizzview-thumbnails .slick-arrow.slick-prev {
    left: 0;
}

.bizzview-thumbnails .slick-arrow.slick-prev:before {
    content: '\e929';
}

.bizzview-thumbnails .slick-arrow.slick-next {
    right: 0;
}

.bizzview-thumbnails .slick-arrow.slick-next:before {
    content: '\e92a';
}

/* ==========================================================================
   Summary
   ========================================================================== */

.bizzview-summary {
    margin: 0;
    padding: 0;
}

.bizzview-summary-content {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    padding-bottom: 80px;
}

.bizzview-excerpt {
    margin-bottom: 15px;
}

.bizzview-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.bizzview-availability {
    margin-bottom: 10px;
}

/* ==========================================================================
   View Details Button
   ========================================================================== */

.bizzview-details-btn {
    width: 50%;
    height: 44px;
    line-height: 44px;
    overflow: hidden;
    position: absolute;
    left: auto;
    right: 0;
    bottom: 0;
    background-color: #222;
    color: #fff;
    text-align: center;
    text-decoration: none;
    outline: none;
    transition: all 0.15s ease-out;
}

.bizzview-details-btn:after {
    content: '\e90f';
    font-family: "feather";
    margin-left: 10px;
}

.bizzview-details-btn:hover {
    background-color: #5fbd74;
    color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1023px) {
    .bizzview-popup {
        max-width: 460px;
        max-height: 90vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .bizzview-product {
        height: 100%;
        flex-grow: 1;
        position: relative;
        overflow-y: auto;
    }

    .bizzview-product > .product {
        display: flex;
        flex-direction: column;
    }

    .bizzview-product > .product > div {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        height: auto;
    }

    .bizzview-thumbnails {
        max-height: 338px;
        width: 100%;
    }

    .bizzview-thumbnails img {
        max-height: 338px;
        margin: 0;
    }

    .bizzview-thumbnails .slick-track {
        max-height: 338px;
    }

    .bizzview-details-btn {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .mfp-bizzview .mfp-arrow {
        display: none;
    }
}

/* ==========================================================================
   Magnific Popup Customization
   ========================================================================== */

.mfp-bizzview {
    z-index: 99999969;
    overflow: auto;
}

.mfp-bizzview .mfp-content {
    text-align: -webkit-auto;
}

.mfp-bizzview .mfp-container {
    padding: 0;
}

.mfp-bizzview .mfp-close {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 0;
}

.mfp-bizzview .mfp-close:hover {
    background-color: transparent;
}

.mfp-bizzview .mfp-close:active {
    top: 0;
}

.mfp-bizzview .mfp-close:focus {
    outline: none;
}

.mfp-bizzview .mfp-close:before {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    content: '\e9ea';
    font-family: "feather";
    display: inline-block;
    font-size: 24px;
    color: #222;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mfp-bizzview .mfp-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    font-size: 0;
    margin: 0 auto;
    margin-top: -15px;
    margin-left: -15px;
    right: auto;
    bottom: auto;
}

.mfp-bizzview .mfp-preloader:before {
    content: '\e9a7';
    font-family: "feather";
    display: inline-block;
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    animation: bizzview-spinner 1s linear infinite;
}

/* Arrow Navigation */
.mfp-bizzview .mfp-arrow {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border: none;
    padding: 0;
    outline: none;
    text-align: center;
    margin-top: -30px;
    border-radius: 0;
    opacity: 1;
}

.mfp-bizzview .mfp-arrow:active {
    margin-top: -30px;
}

.mfp-bizzview .mfp-arrow:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.mfp-bizzview .mfp-arrow:focus {
    outline: none;
}

.mfp-bizzview .mfp-arrow:before {
    width: 60px;
    height: 60px;
    line-height: 60px;
    padding: 0;
    border-width: 0;
    margin: 0;
    display: inline-block;
    font-family: "feather";
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
}

.mfp-bizzview .mfp-arrow:after {
    display: none;
}

.mfp-bizzview .mfp-arrow.mfp-arrow-left:before {
    content: '\e90e';
}

.mfp-bizzview .mfp-arrow.mfp-arrow-right:before {
    content: '\e90f';
}

/* ==========================================================================
   Modal Effects
   ========================================================================== */

/* Fade Effect */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}

/* Zoom In Effect */
.mfp-zoom-in .mfp-with-anim {
    opacity: 0;
    transition: all 0.2s ease-in-out;
    transform: scale(0.8);
}

.mfp-zoom-in.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-zoom-in.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: scale(1);
}

.mfp-zoom-in.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-zoom-in.mfp-removing .mfp-with-anim {
    transform: scale(0.8);
    opacity: 0;
}

.mfp-zoom-in.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Zoom Out Effect */
.mfp-zoom-out .mfp-with-anim {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transform: scale(1.3);
}

.mfp-zoom-out.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-zoom-out.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: scale(1);
}

.mfp-zoom-out.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-zoom-out.mfp-removing .mfp-with-anim {
    transform: scale(1.3);
    opacity: 0;
}

.mfp-zoom-out.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Newspaper Effect */
.mfp-newspaper .mfp-with-anim {
    opacity: 0;
    transition: all 0.5s;
    transform: scale(0) rotate(500deg);
}

.mfp-newspaper.mfp-bg {
    opacity: 0;
    transition: all 0.5s;
}

.mfp-newspaper.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.mfp-newspaper.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-newspaper.mfp-removing .mfp-with-anim {
    transform: scale(0) rotate(500deg);
    opacity: 0;
}

.mfp-newspaper.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Move Horizontal Effect */
.mfp-move-horizontal .mfp-with-anim {
    opacity: 0;
    transition: all 0.3s;
    transform: translateX(-50px);
}

.mfp-move-horizontal.mfp-bg {
    opacity: 0;
    transition: all 0.3s;
}

.mfp-move-horizontal.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: translateX(0);
}

.mfp-move-horizontal.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-move-horizontal.mfp-removing .mfp-with-anim {
    transform: translateX(50px);
    opacity: 0;
}

.mfp-move-horizontal.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Move From Top Effect */
.mfp-move-from-top .mfp-with-anim {
    opacity: 0;
    transition: all 0.2s;
    transform: translateY(-100px);
}

.mfp-move-from-top.mfp-bg {
    opacity: 0;
    transition: all 0.2s;
}

.mfp-move-from-top.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: translateY(0);
}

.mfp-move-from-top.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-move-from-top.mfp-removing .mfp-with-anim {
    transform: translateY(-50px);
    opacity: 0;
}

.mfp-move-from-top.mfp-removing.mfp-bg {
    opacity: 0;
}

/* 3D Unfold Effect */
.mfp-3d-unfold .mfp-content {
    perspective: 2000px;
}

.mfp-3d-unfold .mfp-with-anim {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transform-style: preserve-3d;
    transform: rotateY(-60deg);
}

.mfp-3d-unfold.mfp-bg {
    opacity: 0;
    transition: all 0.5s;
}

.mfp-3d-unfold.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: rotateY(0deg);
}

.mfp-3d-unfold.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-3d-unfold.mfp-removing .mfp-with-anim {
    transform: rotateY(60deg);
    opacity: 0;
}

.mfp-3d-unfold.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Slide Bottom Effect */
.mfp-slide-bottom .mfp-with-anim {
    opacity: 0;
    transition: all 0.2s ease-out;
    transform: translateY(-20px) perspective(600px) rotateX(10deg);
}

.mfp-slide-bottom.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: translateY(0) perspective(600px) rotateX(0);
}

.mfp-slide-bottom.mfp-removing .mfp-with-anim {
    opacity: 0;
    transform: translateY(-10px) perspective(600px) rotateX(10deg);
}

.mfp-slide-bottom.mfp-bg {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.mfp-slide-bottom.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-slide-bottom.mfp-removing.mfp-bg {
    opacity: 0;
}

/* ==========================================================================
   Sidebar View
   ========================================================================== */

.bizzview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s;
    z-index: 99999968;
    opacity: 0;
    visibility: hidden;
}

.bizzview-sidebar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    padding: 0;
    height: 100%;
    max-height: 100%;
    background-color: #ffffff;
    z-index: 99999969;
    position: fixed;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.bizzview-sidebar .bizzview-close {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
    text-align: center;
    position: absolute;
    top: 0;
    left: -40px;
    z-index: 9;
    cursor: pointer;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
}

.bizzview-sidebar .bizzview-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

body.bizzview-open .bizzview-overlay,
body.bizzview-open .bizzview-sidebar {
    opacity: 1;
    visibility: visible;
}

.bizzview-sidebar .bizzview-product {
    flex-grow: 1;
    overflow-x: hidden;
    overflow-y: auto;
}

.bizzview-sidebar .bizzview-product > .product {
    display: flex;
    flex-direction: column;
}

.bizzview-sidebar .bizzview-product > .product > div {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    height: auto;
}

.bizzview-sidebar .bizzview-details-btn {
    width: 100%;
    position: relative;
    box-shadow: none;
    padding: 14px 20px;
    line-height: 1;
    height: auto;
}

/* Loading State */
.bizzview-sidebar.bizzview-loading:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
}

.bizzview-sidebar.bizzview-loading:after {
    width: 32px;
    height: 32px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -16px;
    margin-left: -16px;
    content: '';
    background-image: url("../images/curve.svg");
    background-repeat: no-repeat;
    background-position: center;
    animation: bizzview-spinner 1s linear infinite;
    z-index: 9;
}

/* Right Position */
.bizzview-sidebar.bizzview-position-right {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    text-align: start;
    transform: translate3d(20px, 0, 0);
}

.bizzview-open .bizzview-sidebar.bizzview-position-right {
    transform: translate3d(-100%, 0, 0);
}

/* Left Position */
.bizzview-sidebar.bizzview-position-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    text-align: start;
    transform: translate3d(-100%, 0, 0);
}

.bizzview-sidebar.bizzview-position-left .bizzview-close {
    left: unset;
    right: -40px;
}

.bizzview-open .bizzview-sidebar.bizzview-position-left {
    transform: translate3d(0px, 0, 0);
}

/* Mobile adjustments for sidebar */
@media screen and (max-width: 1023px) {
    .bizzview-sidebar .bizzview-close {
        left: unset !important;
        right: 0 !important;
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

body.rtl .mfp-bizzview .mfp-close {
    right: auto !important;
    left: 0 !important;
}
