/**
 * Theme Name: porto
 * Template:   porto

 */

.custom-btn-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    align-items: stretch;  /* Ensure buttons stretch to fill container */
}

.custom-btn-group a {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    text-transform: capitalize;
    transition: all 0.3s ease-in-out;
    color: #fff;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center; /* Center text inside the buttons */
}

.custom-cart-button {
    background-color: #000;
}

.custom-cart-button:hover {
    background-color: #333;
    color: #fff !important;
}

.custom-order-button {
    background-color: #00AEEF;
}

.custom-order-button:hover {
    background-color: #007bb5;
    color: #fff !important;
}

.woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.6em; /* Keeps space for 2 lines */
    line-height: 1.8em; /* Adjust based on your font size */
    margin-bottom: 10px; /* Spacing under title */
}

/* Make the product containers even in height */
.product-inner {
    border: 2px solid transparent;
    padding: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-inner:hover {
    border-color: #00AEEF;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.3);
    background-color: #fff;
    z-index: 2;
}

.product-inner img,
.custom-btn-group a {
    transition: none;
    transform: none;
}

/* Mobile View Adjustments */
@media (max-width: 480px) {
    .custom-btn-group {
        flex-direction: column;
        gap: 10px;  /* Adds a gap between buttons when stacked vertically */
    }
}


.woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* Max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.6em;            /* Keeps space for 2 lines */
    line-height: 1.8em;           /* Adjust based on your font size */
    margin-bottom: 10px;          /* Spacing under title */
}

.product-inner {
    border: 2px solid transparent;  /* reserve space for border */
    padding: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;         /* important to prevent size change */
}

.product-inner:hover {
    border-color: #00AEEF;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.3);
    background-color: #fff;
    z-index: 2;
}
.product-inner img,
.custom-btn-group a {
    transition: none;
    transform: none;
}


