
/* Container & Grid */
.custom-related-products { 
	padding: 40px 0; 
	max-width: var(--max-width); 
	width: 96%; 
	margin: 20px auto; 
	display: flex;
	gap: 10px;
	flex-direction: column
}

.related-products-grid { 
	display: grid; 
	grid-template-columns: repeat(4,1fr); 
	gap: 10px; 
	justify-content: center;
}





.product-card {  flex: 0 0 190px; border: 1px solid #eee; border-radius: 8px; padding: 12px; text-align: center; background: #fff; }

/* Unified Card Styling (Used by Carousel & Related) */
.product-card { 
    display: flex !important; 
    flex-direction: column; 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 8px;
    padding: 0; /* Let details handle padding */
    overflow: hidden;
    transition: transform 0.3s ease;
}


/* Related Grid specific card sizing */
.related-products-grid .caro-item {
    flex: 1;
    min-width: 220px;
    max-width: calc(25% - 20px);
}

.caro-image-link img { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }

.product-details { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.product-info-wrapper { flex-grow: 1; display: flex; flex-direction: column; }

.caro-price { color: #111; font-weight: bold; display: block;  font-size: 1.1em; }

.product-title { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-align: left; 
}
.product-title a { text-decoration: none; color: #333; }

.js-custom-add { 
    width: 100%; 
    padding: 12px; 
    background: #000; 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 12px;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .related-products-grid .caro-item { max-width: calc(50% - 20px); min-width: 40%; }
}

.site-wishlist-toggle {
    position: absolute;
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    top: 4px;
    right: 4px;
}

span.dashicons.dashicons-heart {
    display: flex;
    align-items: center;
    justify-content: center;
}

button.wishlist-btn {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.wishlist-btn:hover {
    padding: 0;
	background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
