/**
Theme Name: FHAITH theme
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fhaith-theme
Template: astra
*/
body.logged-in .btn-login,
body.logged-in .btn-register {
    display: none !important;
}

/* Styling the Login and Register Menu Items as Buttons */
.btn-login a, .btn-register a {
    padding: 10px 20px !important;
    border-radius: 5px !important;
    text-align: center !important;
    margin: 5px !important;
    display: block !important;
    font-weight: bold !important;
}
/* Login Button - Light Style */
.btn-login a {
    background-color: #f1f1f1 !important;
    color: #3B1E54 !important;
    border: 1px solid #3B1E54 !important;
}

/* Register Button - Dark/Brand Style */
.btn-register a {
    background-color: #3B1E54 !important; /* Your brand purple/blue */
    color: #ffffff !important;
}

/* Mobile Side-by-Side View */
@media (max-width: 1024px) {
    /* Target the container of the menu items */
    .btn-login, .btn-register {
        width: 45% !important;
        display: inline-block !important;
        float: left !important;
    }
    
    /* Clearfix for the menu list */
    .elementor-nav-menu--dropdown ul {
        display: block !important;
    }
    .logout-custom{
        display: none;
    }
}
/* Mobile Side-by-Side View */
@media (min-width: 1025px) {
    /* Target the container of the menu items */
    .btn-login, .btn-register {

        display: none !important;
    }
    
    
    .logout-custom{
        display: none;
    }
}

button.single_add_to_cart_button, .button {
    background-color: #3B1E54 !important; /* Your brand purple/blue */
    color: #ffffff !important;
    border: solid 1px transparent !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

button.single_add_to_cart_button:hover, .button:hover {
    background-color: #fff !important; /* Your brand purple/blue */
    color: #CA9833 !important;
    border: 1px solid #CA9833 !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}
tr.wps_recurring_bifurcation_wrapper {
    display: none !important;
}


/* Category pagte or product archive page product design. */

/* Ensure book images are 100% visible (not cropped) */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Prevents cropping */
    background: #ffffff;
    padding: 0;
}

/* Style the product card to look like the design */
.woocommerce ul.products li.product {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    background: #fff;

}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

/* Custom Impact Badge (Requires content-product.php edit or Hook) */
.impact-badge {
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 0px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* to fix the product card layout */
/* Product grid layout */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr); /* 4 products per row on desktop */
  gap: 20px; /* spacing between cards */
}

/* Product cards */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  padding-bottom: 10px;
  background: #fff;
}

/* Product images */
.woocommerce ul.products li.product img {
  width: 100%;
  height: 250px;          /* fixed height for consistency */
  object-fit: cover;    /* keep full image visible */
  margin-bottom: 15px;
  border-radius: 10px 10px 0px 0px;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr); /* 3 per row on tablets */
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 2fr; 
  }
}



/* Sometimes the PayPal SDK 'guesses' the font size by looking at the hidden labels */
#ppcp-credit-card-gateway-card-name,
#ppcp-credit-card-gateway-card-number, 
#ppcp-credit-card-gateway-card-expiry, 
#ppcp-credit-card-gateway-card-cvc {
    font-size: 1rem !important;
}

#add_payment_method #payment div.payment_box .form-row, .woocommerce-cart #payment div.payment_box .form-row, .woocommerce-checkout #payment div.payment_box .form-row {
    margin: 0;
}
input[name="sender-name"], input[name="sender-email"] {
    background-color: #f9f9f9 !important;
    border: none !important;
    color: #888 !important;
    pointer-events: none;
}


/* Dashboard design */

/* Add space between the navigation menu and the dashboard content */
.woocommerce-MyAccount-navigation {
    margin-bottom: 40px; /* Adjust this number to increase/decrease the gap */
}

.entry-content ul, .entry-content ol {
    padding-left: 0px;
}