/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* 768px and larger screen sizes */
@media only screen and (max-width: 600px){
	
.topbarr{display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: auto !important;
	}
    .topbarr p{margin-bottom: 0 !important;}

    .product-image-link img {height: 220px !important ;object-fit: cover !important;}
}



.product-image-link img {height: 330px;object-fit: cover;}


.woocommerce-product-details__short-description blockquote img{width: 50px !important;height: 54px !important;}


.woocommerce-product-details__short-description blockquote .wp-image-10117{width: 40px !important;height: 40px !important;}

.related-products-post ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    margin: 60px 0 0;
    padding: 0;
}
.related-products-post ul.products li.product {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.related-products-post ul.products li.product:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-6px);
}

/* Image */
.related-products-post ul.products li.product img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.related-products-post ul.products li.product:hover img {
    transform: scale(1.03);
}

/* Title */
.related-products-post ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 17px;
    font-weight: 600;
    margin: 10px 0;
    min-height: 48px; /* make titles same height */
    color: #222;
}

/* Price */
.related-products-post ul.products li.product .price {
    font-size: 16px;
    color: #239D46;
    font-weight: bold;
    margin-top: auto;
    margin-bottom: 15px;
}

/* Add to cart button */
.related-products-post ul.products li.product a.button {
    background: #239D46;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    text-decoration: none;
}

.related-products-post ul.products li.product a.button:hover {
    background: #1d7c38;
}

/* Section title */
.related-products-post h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}



@media (max-width: 992px) {
    .related-products-post ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-products-post ul.products {
        grid-template-columns: 1fr;
    }
}