/*
Theme Name:   xstore-child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/
/* =======================================================
   FINAL CSS FIX: HIDE LOGO BY TARGETING ELEMENTOR WIDGET ID 
   ======================================================= */


.sticky-on .etheme-elementor-header-wrapper > .elementor-element.elementor-element-74e3130b {
    background-color: #000000;
    height: 143px;
}

.elementor-1879 .elementor-element.elementor-element-161202ef img {
    max-width: 164px;
    height: 132px;
    margin-left: -153px;
}

.etheme-elementor-nav-menu {
    margin: 0px 0px -20px -2px;
}

.category-grid img {
   border-radius: 50% !important;
   object-fit: cover !important;
   height: 200px !important;
   width: 200px !important;
   background: transparent !important;
}

.category-grid {
    position: relative;
    margin-bottom: 56px !important;
}

.category-grid .categories-mask {
    pointer-events: none !important;
}

.category-grid a {
    pointer-events: auto !important;
}

.category-grid a {
    position: relative; 
    z-index: 10 !important; 
}

.category-grid .categories-mask h4 {
    color: #00000!important;
    font-weight: 500 !important;
    margin-top: 217px !important;
    position: static !important;
}

.category-grid.text-color-dark .count, .category-grid.text-color-dark sup {
    /* color: var(--et_main-color); */
    color: #ffffff !important;
    display: none !important;
}

.portfolio-descr {
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 30px 30px 30px;
    bottom: 0;
    color: #fff;
    display: none !important;
}

.page-heading, .et-header-overlap .page-heading {
    padding-top: 8em;
    padding-bottom: 6.5em;
    top: 0px !important;
    margin: -20px;
}

/* ======================================= */
/* Gramaahar Child Theme Custom CSS        */
/* Fix for Shop Page Breadcrumb Background */
/* ======================================= */

/*
.elementor-1882 .elementor-element.elementor-element-7850802e {
    background-image: url("https://gramaahar.com/wp-content/uploads/2025/12/shop.png") !important;
    margin: auto !important;
    left: -15px !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
   
}
*/

.elementor-1586 .elementor-element.elementor-element-5f3515e > .elementor-background-overlay {
    background-image: url(https://gramaahar.com/wp-content/uploads/2023/05/Image2-min.jpeg);
    background-repeat: no-repeat;
    opacity: 44.99;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    height: 497px !important;
}

.elementor-1586 .elementor-element.elementor-element-ae756ab {
    margin-top: -57px;
    margin-bottom: 0px;
}

.dokan-info, .mc4wp-info, .woocommerce-info, .woocommerce-order-overview-wrapper~p {
    display: none !important;
}

#et_price_filter-7{
    display: none !important;
}
#etheme_product_status_filter-9{
     display: none !important;
}

.sticky-on .etheme-elementor-header-wrapper > .elementor-element.elementor-element-74e3130b {
    background-color: #000000;
    height: 125px;
}

/* =======================================================
   SUCCESS MESSAGE STYLING (FLASH MESSAGE)
   ======================================================= */

.gramaahar-cart-flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #1A4122; 
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 999999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: inherit;
    font-size: 15px;
    border-left: 5px solid #87C344; 
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Custom Code for the Mobile Responsive part with Media Query For the Mobile- 767px Screen*/

@media (max-width: 767px) {
    .elementor-1879 .elementor-element.elementor-element-161202ef img {
        max-width: 127px !important;
        height: 105px !important;
        margin-left: 0px;
        
    }
    
    .elementor-widget-image img {
        margin: -20px 0px 0px 0px !important;
        height: 206px !important;
        max-width: 345px !important;
    }

    
    .elementor-1882 .elementor-element.elementor-element-5d724a8c:not(.elementor-motion-effects-element-type-background), .elementor-1882 .elementor-element.elementor-element-5d724a8c > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: #FAFAFA;
    background-position: center center;
    background-size: cover;
    width: 399px !important;
}

/* Target the section containing the background overlay */
    .elementor-1586 .elementor-element.elementor-element-5f3515e {
        height: auto !important; /* Allow the section to grow with content */
        min-height: 600px; /* Optional: ensures a minimum height */
    }

    
    .dokan-info, .mc4wp-info, .woocommerce-info, .woocommerce-order-overview-wrapper~p {
        display: none !important;
}

.etheme-elementor-off-canvas-design-separated .etheme-elementor-nav-menu.vertical .etheme-elementor-nav-menu-item-parent .elementor-item, .etheme-elementor-off-canvas-design-separated .woocommerce-MyAccount-navigation-link a {
    padding: calc(var(--off-canvas-elements-gap, 14px) / 1.3) 0;
    border-bottom: 1px solid var(--et_border-color);
    text-transform: uppercase;
    left: 7px !important;
}

.etheme-elementor-off-canvas-design-separated .etheme-elementor-mobile-menu-account,
.etheme-elementor-off-canvas-design-separated .etheme-elementor-mobile-menu-cart,
.etheme-elementor-off-canvas-design-separated .etheme-elementor-mobile-menu-wishlist {
    border-bottom: 1px solid var(--et_border-color, #eeeeee) !important;
    padding: 12px 0 !important;
    display: flex !important;
    align-items: center !important;
}

.etheme-elementor-mobile-menu-account a, 
.etheme-elementor-mobile-menu-cart a,
.etheme-elementor-mobile-menu-wishlist a {
    padding-left: 7px !important; 
    text-transform: uppercase !important;
    font-size: 14px !important;
    color: #333 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.etheme-elementor-mobile-menu-wishlist {
    border-bottom: none !important;
}

.sticky-on .etheme-elementor-header-wrapper > .elementor-element.elementor-element-74e3130b {
    background-color: #000000;
    height: 125px;
    display:none !important;
}

/*
.elementor-1882 .elementor-element.elementor-element-7850802e {
    background-image: url("https://gramaahar.com/wp-content/uploads/2025/12/shop.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    max-width: 114%;
    width: 438px;
    left: -15px;
}
*/

/* Mobile View Fix */
/*    .gramaahar-cart-flash-message {*/
/*        display: block !important; */
/*        top: auto !important;*/
/*        bottom: 100px !important; */
/*        left: 10px !important;*/
/*        right: 10px !important;*/
/*        text-align: center !important;*/
/*        font-size: 14px !important;*/
/*        z-index: 99999999 !important;*/
/*        width: calc(100% - 20px) !important; */
   
/*}*/
.gramaahar-cart-flash-message {
        display: block !important;
        position: fixed !important;
        top: 20px !important;      /* Bottom se hata kar TOP par shift kiya */
        bottom: auto !important;   /* Bottom setting clear ki */
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
        height: auto !important;    /* Height ko content ke hisaab se auto rakha */
        max-height: 80px !important; /* Bohot lamba hone se rokne ke liye */
        padding: 10px 15px !important;
        z-index: 99999999 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        border-radius: 8px !important;
        line-height: 1.4 !important;
        overflow: hidden !important;
    }

    .gramaahar-cart-flash-message strong {
        display: inline-block;
        max-width: 150px; /* Product name lamba ho toh cut jaye */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }

}

/*Media Query For the Mobile- 992px Screen
@media only screen and (max-width: 992px) {
    .elementor-1882 .elementor-element.elementor-element-7850802e {
        padding-right: 0;
        background-image: url("https://gramaahar.com/wp-content/uploads/2025/12/shop.png") !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: cover !important;
        max-width: 121% !important;
        width: 438px;
        left: -15px;
    }
}*/

/* Media Query For the Tablet- 1024px Screen
@media only screen and (max-width: 1024px) {
    .elementor-1882 .elementor-element.elementor-element-7850802e {
        font-size: 45px;
        padding-right: 0;
        background-image: url("https://gramaahar.com/wp-content/uploads/2025/12/shop.png") !important;
        /* background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: cover !important;
        max-width: 121% !important;
        width: 769px !important;
        left: -15px;
    }
*/
 .elementor-1879 .elementor-element.elementor-element-161202ef img {
        max-width: 164px !important;
        height: 132px !important;
        margin-left: -17px !important;
    }
}

/* Allow 4 columns even with sidebar */
.archive.woocommerce ul.products.columns-4 li.product {
    width: 25% !important;
    max-width: 25% !important;
    min-width: 0 !important;
}

/* Reduce internal padding so cards fit */
.archive.woocommerce ul.products li.product {
    padding-left: 10px;
    padding-right: 10px;
}

