/* Drawer Styles */
.awp-wc-quick-view-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 9998;
    width: 460px;
    max-width: 80%;
    transform: translateX(100%);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    z-index: 9999;

}

.awp-wc-quick-view-drawer.open {
    right: 0;
    transform: translateX(0);
    width: 600px;
    max-width: 90%;
}

.awp-wc-quick-view-drawer.open .awp-wc-close-drawer {
    transform: translateX(-50%);
}

.awp-wc-quick-view-drawer .awp-wc-close-drawer {
    top: 15px;
    cursor: pointer;
    color: inherit;
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e8e8e8;
    width: 20px;
    height: 20px;
    display: flex;
    text-align: center;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.awp-wc-quick-view-button {
    display: inline-block;
    vertical-align: middle;
    padding: 8px 10px;
    min-width: 100px;
    text-align: center;
    margin-bottom: .236em;
}

.awp-quickview-icon-only {
    min-width: 40px !important;
    width: 40px !important;
    border-radius: 100%;
    height: 40px;
    line-height: 38px;
    padding: 0 10px 0 10px;

}
.awp-wc-qv-btn-inside_product_img.apl-top-right {
    left: auto;
    right: 0;
    width: auto !important;
    margin: 0;
    top: 0;
}
.awp-wc-qv-btn-inside_product_img.apl-top-left {
    left: 0;
    right: auto;
    width: auto !important;
    margin: 0;
    top: 0;
}

.awp-wc-qv-btn-inside_product_img.apl-bottom-left {
    left: 0;
    right: auto;
    width: auto !important;
    margin: 0;
    top: auto;
    bottom: 20px;
}
.awp-wc-qv-btn-inside_product_img.apl-bottom-right {
    left: auto;
    right: 10px;
    width: auto !important;
    margin: 0;
    top: auto;
    bottom: 20px;
}

.awp-quickview-icon-only img {
    width: 24px !important;
}

.awp-wc-quick-view-button .algo-wc-btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}





.awp-wc-quick-view-drawer .awp-wc-close-drawer img {
    display: inline-block;
}

.awp-wc-quick-view-drawer .awp-wc-close-drawer:hover {
    /* background: #111111; */
}

.awp-wc-quick-view-drawer .awp-wc-close-drawer:hover img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);

}

.awp-wc-quick-view-drawer .awp-wc-quick-view-drawer-scroll {
    /* padding: 30px 20px 20px 20px; */
    /* overflow-y: auto; */
    height: 100%;
    /* overflow-x: hidden; */
}

.awp-wc-quick-view-drawer-scroll .product {
    height: 100%;
    position: relative;
    /* padding: 30px 20px 20px 20px; */
}

.awp-wc-quick-view-drawer-scroll .product .awp-wc-qv-content {
    height: 100%;
    position: relative;
    padding: 30px 20px 60px 20px;
    overflow-y: auto;
}

.awp-wc-quick-view-drawer-scroll .awp-qv-stiky-menu {
    border-radius: 0;
}

.awp-wc-quick-view-drawer .storefront-product-pagination a {
    position: absolute;
}

.awp-wc-quick-view-drawer .woocommerce-tabs {
    display: inline-block;
    width: 100%;
}

.awp-wc-quick-view-drawer .onsale {
    float: right;
    margin: 0;
    position: inherit !important;
}

.awp-wc-quick-view-drawer .summary .product_title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 10px;
}

.awp-wc-quick-view-drawer .summary .price,
.awp-wc-quick-view-drawer .summary .price del,
.awp-wc-quick-view-drawer .summary .woocommerce-Price-amount.amount {
    font-size: 22px;
    font-weight: 600;
}

.awp-wc-quick-view-drawer .quantity,
.awp-wc-quick-view-popup .quantity {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.awp-wc-quick-view-drawer .summary button,
.awp-wc-quick-view-popup .summary button {
    margin-top: 0 !important;
}

.awp-wc-quick-view-drawer .summary .woocommerce-product-details__short-description,
.awp-wc-quick-view-popup .summary .woocommerce-product-details__short-description {
    margin: 20px 0;
}

.awp-wc-quick-view-drawer .woocommerce-tabs ul.tabs,
.awp-wc-quick-view-drawer .woocommerce-tabs .panel {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.awp-wc-quick-view-drawer .woocommerce-tabs .panel h2:first-of-type {
    font-weight: 500;
}

.awp-wc-quick-view-drawer #respond {
    padding: 0;
}

.awp-wc-quick-view-drawer .product_meta .sku_wrapper {
    font-weight: 600;
    display: inline-block;
    width: 100%;
}

.awp-wc-quick-view-drawer .product_meta .sku_wrapper .sku {
    font-weight: 400;
}

.awp-wc-quick-view-drawer .product_meta .posted_in {
    font-weight: 600;
    display: inline-block;
    width: 100%;
}

.awp-wc-quick-view-drawer .product_meta .posted_in a {
    font-weight: 400;
}

.awp-wc-quick-view-drawer .summary {
    width: 100% !important;
    float: left !important;
    padding-bottom: 20px;
}

/***Popup Css***/
.awp-wc-quick-view-popup {
    position: fixed;
    visibility: hidden;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    opacity: 0;
    transition: all 0.5s ease;
    margin: 0 auto;
    height: 100%;
}

.awp-wc-quick-view-popup.open {
    visibility: visible;
    opacity: 1;

}

.awp-wc-quick-view-popup .awp-wc-quick-view-popup-scroll {
    opacity: 0;
    height: 600px;
    transition: all 0.3s;
    /* transform: translateY(30%); */
    margin: 0 auto;
    /* padding: 20px; */
    border-radius: 24px;
    position: relative;
}

.awp-wc-quick-view-popup-scroll .flexslider {
    margin: 0;
    border-radius: 22px 0px 0px 22px;
    height: 100%;
    background: transparent;
}

.cqvd-quick-view-popup img {
    border-radius: 22px 0px 0px 22px;
    max-width: 100%;
    object-fit: cover;
    height: 100%;
    object-position: center;
}

.awp-wc-quick-view-popup .flexslider .slides,
.awp-wc-quick-view-popup .flex-viewport {
    height: 100%;
}

.awp-wc-quick-view-popup .woocommerce-product-gallery__wrapper.awp-wc-prod-gallery {
    height: 100%;
}

.awp-wc-quick-view-popup-scroll .product {
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
}

.awp-wc-open-modal {
    overflow: hidden;
}

.awp-wc-quick-view-popup .flex-direction-nav a:before {
    font-size: 20px;
}

.awp-wc-quick-view-popup .quantity {
    display: inline-block;
}

.awp-wc-quick-view-popup.open .awp-wc-quick-view-popup-scroll {
    opacity: 1;
    /* transform: translateY(30%); */
}


.awp-wc-quick-view-popup .woocommerce-product-gallery.woocommerce-product-gallery--with-images.images {
    width: 40%;
    float: left;
    height: 100%;
    background: transparent;
    border-radius: 22px 0px 0px 22px;
}

.awp-qv-navigation .prev-product {
    margin-right: 8px;
}

.awp-wc-quick-view-popup-scroll .awp-qv-slides li img {
    border-radius: 22px 0 0 22px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.awp-qv-stiky-menu {
    position: absolute;
    bottom: 0;
    background: #f6f5f5;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    left: 0;
    border-radius: 0px 0px 22px 0px;
}

.awp-qv-navigation a {
    padding: 6px 10px;
    font-weight: 600;
}

.awp-wc-product-detail-btn {
    padding: 6px 10px !important;
    line-height: 20px;
}

.awp-wc-quick-view-popup .summary {
    width: 60%;
    float: left;
    padding-left: 0;
    height: 100%;
    position: relative;
}

.awp-wc-quick-view-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0);
    opacity: 0.5;
}
.awp-wc-quick-view-button span {
    margin-right: 5px;
    vertical-align: middle;
}
.awp-wc-quick-view-button .awp-wc-qv-btn-label {
    margin-right: 0;
}
.awp-wc-qv-btn-inside_product_img .awp-wc-quick-view-button span {
    margin-right: 0;
}
.awp-wc-close-popup {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 100%;
    top: 10px;
    text-align: center;
    cursor: pointer;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 1px solid; */
    background: #fff;
    font-size: 24px;
}

.awp-wc-close-popup img {
    display: inline-block;
}

.awp-wc-quick-view-popup .product_title {
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 10px;
}



/**Loader**/
.awp-wc-quick-view-drawer-scroll {
    position: relative;
}

.awp-wc-quick-view-popup .awp-wc-loader-overlay {
    border-radius: 24px;
}

.awp-wc-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.awp-wc-loader-overlay.algo_wc_qc_loader_show {
    display: flex;
    opacity: 1;
    /* Fully visible overlay */
    pointer-events: auto;
    transition: opacity 0.5s ease-in-out;
}

.awp-wc-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.algo-wc-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.algo_wc_prod_add_to_cart_loader {
    display: none;
}

.flex-direction-nav a {
    line-height: 44px;
}

.flex-control-nav {
    bottom: 0;
}

.flexslider {
    margin: 0 0 10px;
    border: none;
}

::-webkit-scrollbar {
    width: 5px !important;
    height: 8px !important;
    background-color: #f3f2f2 !important;
}

::-webkit-scrollbar-thumb {
    background: #6f6c6c !important;
}

a:focus,
input:focus,
textarea:focus,
button:focus {
    outline: 0;
}

.awp-wc-quick-view-drawer .woocommerce div.product div.images {
    /* width: 100%;
    height: 400px; */
}

.awp-wc-quick-view-drawer .flexslider .slides img {
    /* max-width: 100%;
    object-fit: cover;
    height: 400px;
    object-position: center; */
}

.awp-wc-quick-view-drawer .awp-qv-slides li img {
    max-width: 100%;
    object-fit: cover;
    /* height: 400px; */
    object-position: center;
}

.awp-wc-quick-view-popup-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.awp-wc-quick-view-popup .awp-qv-navigation {
    display: inline-block;
}

.awp-wc-quick-view-popup .inner-summary {
    display: inline-block;
    width: 100%;
    height: calc(100% - 80px);
    overflow-y: auto;
    padding: 20px 20px 0px 20px;
}

.awp-wc-quick-view-drawer-scroll .awp-qv-slides li img {
    width: 100% !important;
}



.awp-wc-quick-view-popup .product_meta .sku_wrapper {
    display: block !important;
}

.flexslider .slides>li {
    height: 100%;
}

.sku_wrapper label,
.posted_in label {
    font-weight: 600 !important;
}

a:focus,
input:focus,
textarea:focus,
button:focus {
    outline: 0 !important;
}

.awp-wc-qv-button-container.awp-wc-qv-btn-inside_product_img {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -120px;
    opacity: 0;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
}

.awp-wc-quick-view-button img.algo-wc-quick-view-icon {
    margin: 0 5px 0 0 !important;
    display: inline-block !important;
    vertical-align: middle;
    width: 15px;


}

.products li:hover .awp-wc-qv-button-container.awp-wc-qv-btn-inside_product_img {
    opacity: 1;
}

/** Popup Effect Animation**/

/* .awp-wc-quick-view-popup.awp-modal-slide_in.open .awp-wc-quick-view-popup-scroll {
    animation: awpSlideIn 0.5s ease-out forwards;
} */

.awp-wc-quick-view-popup.awp-modal-slide_out.open .awp-wc-quick-view-popup-scroll {
    animation: awpSlideRight 0.5s ease-in forwards;
}

.awp-wc-quick-view-popup.awp-modal-slide_out .awp-wc-quick-view-popup-scroll {
    animation: awpSlideOut 0.5s ease-in forwards;
}

.awp-wc-quick-view-popup.awp-modal-zoom_in.open .awp-wc-quick-view-popup-scroll {
    visibility: visible;
    opacity: 1;
    animation: zoom-in 0.5s ease-out forwards;
}

.awp-wc-quick-view-popup.awp-modal-zoom_in .awp-wc-quick-view-popup-scroll {
    animation: zoom-out 0.5s ease-in forwards;
    visibility: hidden;
    opacity: 0;
}

.awp-wc-quick-view-popup.awp-modal-flip.open .awp-wc-quick-view-popup-scroll {
    animation: flip-in 0.6s ease-out forwards;
}

.awp-wc-quick-view-popup.awp-modal-flip .awp-wc-quick-view-popup-scroll {
    animation: flip-out 0.6s ease-in forwards;
}

.awp-wc-quick-view-popup.awp-modal-rotate.open .awp-wc-quick-view-popup-scroll {
    animation: rotate-in 0.6s ease-out forwards;
}

.awp-wc-quick-view-popup.awp-modal-rotate .awp-wc-quick-view-popup-scroll {
    animation: rotate-out 0.6s ease-in forwards;
}

.awp-wc-quick-view-popup.awp-modal-zoom_out .awp-wc-quick-view-popup-scroll {
    animation: scale-out 0.3s ease-in-out forwards;
}

.awp-wc-quick-view-popup.awp-modal-zoom_out.open .awp-wc-quick-view-popup-scroll {
    animation: scale-in 0.3s ease-in-out forwards;
}


.awp-wc-quick-view-popup.awp-modal-slide_in.open .awp-wc-quick-view-popup-scroll {
    animation: awpSlideLeft 0.5s ease-in-out forwards;
}

.awp-wc-quick-view-popup.awp-modal-slide_in .awp-wc-quick-view-popup-scroll {
    animation: awpSlideIn 0.5s ease-in-out forwards;
}


@keyframes awpSlideIn {
    from {
        left: 0%;
        opacity: 0;
    }

    to {
        left: -100%;
        opacity: 1;
    }
}

@keyframes awpSlideOut {
    from {
        left: 0%;
        opacity: 1;
    }

    to {
        left: 50%;
        opacity: 1;
    }
}

/* Keyframes for scale-in animation */
@keyframes scale-out {
    from {
        transform: scale(1);
        opacity: 0;
    }

    to {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Keyframes for scale-out animation */
@keyframes scale-in {
    from {
        transform: scale(1.3);
        opacity: 1;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Keyframes for slide-in animation */
@keyframes awpSlideLeft {
    from {
        left: -100%;
        opacity: 0;
    }

    to {
        left: 0%;
        opacity: 1;
    }
}

/* Keyframes for slide-out animation */
@keyframes awpSlideRight {
    from {
        left: 50%;
        opacity: 1;
    }

    to {
        left: 0%;
        opacity: 1;
    }
}

/* Keyframes for zoom-in animation */
@keyframes zoom-in {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Keyframes for flip-in animation */
@keyframes flip-in {
    from {
        transform: rotateY(90deg);
        opacity: 0;
    }

    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* Keyframes for flip-out animation */
@keyframes flip-out {
    from {
        transform: rotateY(0deg);
        opacity: 1;
    }

    to {
        transform: rotateY(90deg);
        opacity: 0;
    }
}

/* Optional: Zoom-out effect */
@keyframes zoom-out {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0);
        opacity: 0;
    }
}

/* Keyframes for rotate-in animation */
@keyframes rotate-in {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }

    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Keyframes for rotate-out animation */
@keyframes rotate-out {
    from {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    to {
        transform:  rotate(-180deg) scale(0);
        opacity: 0;
    }
}


/* Spin animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/**Responsive Css ***/
@media only screen and (min-width: 320px) and (max-width: 769px) {
    .awp-wc-quick-view-drawer.open {
        max-width: 100%;
    }

    .awp-wc-quick-view-drawer.open .awp-wc-close-drawer {
        transform: translateX(13%);
    }

    .awp-wc-quick-view-popup .awp-wc-quick-view-popup-scroll {
        width: 90% !important;
        height: 80% !important;
        padding: 0;
    }

    .awp-wc-qv-button-container.awp-wc-qv-btn-inside_product_img {
        opacity: 1;
    }

    .awp-wc-quick-view-popup .woocommerce-product-gallery.woocommerce-product-gallery--with-images.images {
        width: 100%;
        height: 300px;
    }

    .awp-wc-quick-view-popup .summary {
        width: 100%;
        padding-left: 0;
        height: calc(67% - 77px);
        padding-top: 20px;
    }

    .awp-wc-close-popup {
        right: -10px;
        top: -18px;
    }

    .awp-wc-quick-view-popup-scroll .product {
        /* overflow-y: auto; */
        border-radius: 0;
    }

    .awp-wc-quick-view-popup .inner-summary {
        height: calc(100% - 80px);
        overflow-y: auto;
        padding: 0 15px;
    }

    .awp-wc-quick-view-popup-scroll .awp-qv-slides li img, .awp-wc-quick-view-drawer-scroll .awp-qv-slides li img{
        width: 100% !important;
    }
    .awp-qv-stiky-menu{
        border-radius: 0px 0px 22px 22px;
    }
    .awp-wc-quick-view-popup-scroll .awp-qv-slides li img{
        border-radius: 22px 22px 0px 22px;
    }
    .awp-qv-navigation a, .awp-wc-product-detail-btn{
        font-size: 13px;
    }
}