/* ===================================
   Import Roboto Font
=================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* ===================================
   Global WooCommerce Typography
=================================== */
.woocommerce-loop-product__title,
.woocommerce .product .summary,
.woocommerce a.button,
.woocommerce a.button:visited {
    font-family: 'Roboto', sans-serif;
    color: black;
}

/* ===================================
   Product Card Styling
=================================== */
ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between product cards */
}

ul.products li.product {
    margin: 20px 10px; /* Adds top and bottom spacing */
    padding: 25px; /* Increased padding for better spacing */
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    flex: 1 1 300px; /* Makes all boxes flexible but minimum 300px */
    max-width: 250px; /* Limits max width */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px; /* Ensures equal height for all product boxes */
}

/* Hover Effect for Product Cards */
ul.products li.product:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Product Image Styling
=================================== */
ul.products li.product img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ===================================
   Product Title Styling
=================================== */
ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

/* Blue Line Separator Under Product Title */
ul.products li.product h2.woocommerce-loop-product__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #0057ff;
    margin: 10px auto;
    border-radius: 2px;
}

/* ===================================
   Short Product Description Styling
=================================== */
ul.products li.product .product-description {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding: 0 10px;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 1; /* Makes description expand to fit space */
}

/* ===================================
   "Saiba Mais" Button Styling
=================================== */
.saiba-mais-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0057ff;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
    text-decoration: none;
    font-size: 14px;
    width: 100%;
    margin-top: auto; /* Pushes the button to the bottom */
    margin-left: auto;
    margin-right: auto;
}

/* Arrow Icon Inside "Saiba Mais" Button */
.saiba-mais-button .icon {
    margin-left: 8px;
    font-weight: bold;
    font-size: 18px;
}

/* Hover Effect for "Saiba Mais" Button */
.saiba-mais-button:hover {
    background: #003bb5;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}
