{% set productImg = product.getFirstImageAsset %}
{% if not editmode %}
{% set linkDetail = app_product_generate_link(product, { 'document' : document, 'prefix': prefix } , {}) %}
{% endif %}
{% set defaultPrice = app_product_default_price(product) %}
{#{% set defaultPriceWithDiscount = app_product_default_price_with_discount(product,userIdSage) %}#}
<style>
.card-img-top {
position: absolute;
top: -50px;
left: 50%;
margin-left: -50px;
width: 100px !important;
height: 100px;
transition: transform 0.3s ease;
}
.card:hover .card-img-top {
transform: scale(1.2);
}
.card {
font-family: "Roboto";
text-transform: lowercase;
margin-top: 30px;
padding-top: 30px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
height: 170px;
}
.card a {
color: inherit;
}
.card-title {
display: block;
font-weight: 600;
}
.card-title:first-letter {
text-transform: uppercase;
}
.card:hover .card-title {
color: #106eea;
}
@media (max-width: 991px) {
.col-md-3,
.col-6 {
flex: 0 0 50%;
max-width: 50%;
}
.card {
height: 250px;
padding-top: 10px;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.col-md-3,
.col-6 {
width: 100%;
flex: 0 0 50%;
max-width: 50%;
}
.card {
height: 250px;
width: 200px;
padding-top: 10px;
margin: 10px 100px 10px 90px;
}
}
@media (min-width: 991px) {
.card {
height: 250px;
}
}
</style>
<div class="col-6 col-sm-6 col-md-3 mt-5">
<div class="card">
<a href="{{ editmode ? '#':linkDetail }}" class="px-3">
<img class="card-img-top" src="{{ (productImg) ? productImg.thumbnail('ProductImages') : '' }}" alt="Card image cap">
<div class="card-block text-center mt-5">
<span class="card-title fs-6">{{ product.getName() }}</span>
{# if product have propspeed brand hide price #}
{# {% if is_authenticated or product.marca != 15663 %}#}
{# <p class="card-position card-price fs-6">{{ app_helper_price_format_spain(defaultPrice) }}€</p>#}
{# {% endif %}#}
</div>
</a>
</div>
</div>