/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://toolhubzilla.com
 Template:     generatepress
 Version:      1.0
*/
/* Hide tags on WordPress blog posts */
.entry-meta .tags-links,
.entry-footer .tags-links {
    display: none !important;
}

/* Hide tags on WooCommerce product pages */
.product_meta .tagged_as {
    display: none !important;
}

/* Hide tags on product archive / shop page */
.product .tagged_as {
    display: none !important;
}
 
/* ==== GLOBAL MODERN BUTTON STYLE (COLOR & ANIMATION ONLY) ==== */
button,
.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #007bff !important;
    color: #fff !important;
    border: 2px solid #007bff !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.25s ease-in-out !important;
}

/* Hover Animation (Entire Website) */
button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: transparent !important;
    color: #007bff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

/* ==== MOBILE PRODUCT BUTTON ROW (LAYOUT ONLY) ==== */
@media (max-width: 768px) {
    .product-button-row {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .product-button-row .button,
    .product-button-row a,
    .product-button-row button {
        flex: 1 1 0 !important;
        width: 50% !important;
        text-align: center !important;
    }
}



/*.......................................*/


/* 1. Star Rating ko hamesha hide karna */
.products .product .star-rating {
    display: none !important;
}

/* 2. Product Title - Default mein space nahi hoga */
.products .product .woocommerce-loop-product__title {
    opacity: 0;
    visibility: hidden;
    max-height: 0; /* Space nahi lega */
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: all 0.4s ease-in-out;
    font-size: 15px; /* Hover par font size */
}
/* 4. Hover par Title show hoga aur space lega */
.products .product:hover .woocommerce-loop-product__title {
    opacity: 1;
    visibility: visible;
    max-height: 100px; /* Title ke liye space */
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

/* Product Image */

.woocommerce ul.products li.product img{
    width:auto !important;
    height:auto !important;
    display:block;
    border-radius:1px;
    margin:0 !important;
}


/* Desktop - 5 columns में button और छोटा */
@media (min-width: 769px) {
    .woocommerce ul.products.columns-5 li.product .button,
    .woocommerce-page ul.products.columns-5 li.product .button {
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* Mobile - 1 column में default size */
@media (max-width: 768px) {
    .woocommerce ul.products li.product .button,
    .woocommerce-page ul.products li.product .button {
        padding: 10px 16px;
		 width: auto !important;
        font-size: 14px;
    }
}






/* ============================================
   MOBILE PRODUCTS - 1 COLUMN WITH LOAD MORE
   Sirf Mobile Devices ke liye (Max width 768px)
   ============================================ */

@media only screen and (max-width: 768px) {
    
    /* Grid ko single column banayein */
    .woocommerce ul.products, 
    .wc-block-grid__products {
        display: block !important;
        padding: 0 !important;
    }

    /* Har product item ko full width dein */
    .woocommerce ul.products li.product, 
    .wc-block-grid__product {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
        padding: 10px !important;
        box-sizing: border-box;
        float: none !important;
        border-bottom: 1px solid #eee;
    }

    /* Image size ko bada aur clear karein */
    .woocommerce ul.products li.product img,
    .wc-block-grid__product-image img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        margin-bottom: 10px;
    }

    /* Title aur Price ka font size */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .wc-block-grid__product-title {
        font-size: 16px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 14px !important;
    }

    /* Shuru mein chupe hue products */
    .mobile-product-hidden {
        display: none !important;
    }

    /* Load More Button ka Design */
    #mobile-load-more-btn {
        display: block;
        width: 90%;
        margin: 20px auto;
        padding: 12px;
        background-color: #000;
        color: #fff;
        text-align: center;
        border: none;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        border-radius: 5px;
        text-transform: uppercase;
    }
    
    #mobile-load-more-btn:hover {
        background-color: #333;
    }
}



@media (min-width: 769px) {
    .site-header,
    .main-navigation {
        display: none !important;
    }
}




