/* Ensure consistent spacing for product cards */
.main-product {
    margin-bottom: 20px;
    background-color: transparent !important;
}

/* Maintain consistent height for product titles */
.product-title {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Ensure consistent layout for product box */
.category-box {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

#filter-container {
    /* Revert to no scrolling (Overrides filter.css) */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: auto !important;
}

/* Product image link override ----------------------------------- */
/* This is to ensure the product image link is clickable and not blocked by the overlay */

/* Make sure overlay hover effects still work */
.product-box-inner {
    position: relative;
    pointer-events: none;
}

.product-box-inner a,
.product-box-inner > .btn {
    pointer-events: auto;
}

.inner-product:hover .product-box-inner {
    opacity: 1;
    visibility: visible;
}

.product-box-inner {
    position: absolute;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
}
