/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.11.10.1756968375
Updated: 2025-09-04 06:46:15

*/
.our-products-grid-main {
  position: relative;
  min-height: 200px; /* ensures space even when loading */
}

.our-products-grid-main.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa; /* WP blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.our-products-grid-main.loading {
  opacity: 0.6;
  pointer-events: none;
}


/* === Popup Overlay === */
/* === Popup Overlay === */
#product-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;

    display: none;          /* hidden initially */
    align-items: center;    /* vertical center */
    justify-content: center;/* horizontal center */

    overflow-y: auto;       /* allow scroll if content taller than viewport */
    padding: 20px;
}

/* === Popup Box === */

#product-popup .popup-content {
    position: relative;
    background: #fff;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
	min-height:90vh;
    overflow-y: auto;
    border-radius: 0px;
    padding: 0px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: fadeInScale 0.3s ease;
    margin: auto; /* ensures center if flex breaks */
}
/* Center loading message */
#product-popup .popup-content.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh; /* keeps full height while centered */
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* === Close Button === */
#product-popup .popup-close {
    position: absolute;
    top: 15px; 
    right: 15px;
    font-size: 28px;
    background: #f5f5f5;
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
	padding:0;
}
#product-popup .popup-close:hover {
    background: #e74c3c;
    color: #fff;
}

/* === Inner Layout === */
#popup-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
#popup-inner .product-gallery {
    flex: 1 1 50%;
    min-width: 300px;
}
#popup-inner .product-details {
    flex: 1 1 45%;
    min-width: 280px;
}

/* === Title & Categories === */
#popup-inner .product-title {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0 20px;
    color: #222;
}
#popup-inner .product-categories {
    margin-bottom: 15px;
}
#popup-inner .product-categories a {
    display: inline-block;
    background: #fff;
    padding: 6px 12px;
    margin-right: 8px;
    border-radius: 0px;
    font-size: 12px;
    text-decoration: none;
    color: #444;
    transition: 0.2s;
}
#popup-inner .product-categories a:hover {
    background: #0073aa;
    color: #fff;
}

/* === Product Info List === */
#popup-inner .product-info {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
#popup-inner .product-info li {
    margin-bottom: 8px;
    font-size: 15px;
    display: flex;
/*     justify-content: space-between; */
	gap: 20px !important;
    border-bottom: 1px dashed #eee;
    padding-bottom: 6px;
}
#popup-inner .product-info strong {
    color: #333;
    font-weight: 600;
}

/* === Swiper Styling Override === */
#popup-inner .swiper {
    border-radius: 10px;
    overflow: hidden;
}
#popup-inner .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
#popup-inner .swiper-button-next,
#popup-inner .swiper-button-prev {
    background: rgba(0,0,0,0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
}
#popup-inner .swiper-button-next:hover,
#popup-inner .swiper-button-prev:hover {
    background: #0073aa;
}
/* Loader centered */
#popup-inner.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

/* Spinner */
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* === Animation === */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    #popup-inner {
        flex-direction: column;
    }
    #popup-inner .product-gallery,
    #popup-inner .product-details {
        flex: 1 1 100%;
    }
    #product-popup .popup-content {
        padding: 20px;
    }
    #popup-inner .product-title {
        font-size: 22px;
    }
}

