/* Product Card Styling */
.products .product {
    border: 1px solid #e1e1e1 !important;
    border-radius: 15px !important;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    position: relative;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
}

.products .product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    border-color: #cccccc !important;
}

/* Product Wrapper / Inner */
.products .product .product-wrapper,
.products .product .product-element-top {
    background-color: #f7f7f7 !important; /* Grey background for image area */
    border-bottom: 1px solid #e1e1e1;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 10px !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* Image Dimensions */
.products .product .product-image-link {
    order: 2; /* Force image to appear after logo */
    width: 100%;
}

.products .product .product-element-top img,
.products .product .product-image-link img {
    width: 100%;
    height: 190px !important; 
    object-fit: contain !important;
    mix-blend-mode: multiply; /* Removes white background from product images on grey background */
    margin-top: 10px; /* Space between logo and image */
}

/* Brand Logo Positioning - Centered strictly ABOVE image using Flexbox */
.products .product .woodmart-product-brands-links,
.products .product .product-brands {
    position: static !important; /* Remove absolute positioning */
    order: 1; /* Force logo to appear first (above image) */
    z-index: 10;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}

.products .product .woodmart-product-brands-links img,
.products .product .product-brands img {
    max-width: 60px !important;
    max-height: 30px !important;
    object-fit: contain;
    mix-blend-mode: multiply;
    margin: 0 auto;
    display: inline-block;
}

/* Content Alignment */
.products .product .product-element-bottom,
.products .product .product-info {
    padding: 15px !important;
    text-align: center;
    background: #fff;
    border-radius: 0 0 15px 15px !important;
    flex-grow: 1;
}

/* Hide default borders inside */
.products .product .wd-buttons {
    border: none !important;
}