/* MINI VIEW */
a {
    outline: none;
}
a:focus {
    outline: none;
    box-shadow: none;
}
.offers{
    display: none;
}
.product-link-container {
    position: relative;
    background-color: white;
    width: 250px;
    margin: 20px 10px 5px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    border: 2px solid #C3B1E1;
    border-radius: 0 0 10px 10px;
    padding: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;

    transform: translateZ(0);
}
.product-header {
    height: 20px;
    position: relative;
    top: 0;
}
.shop-img {
    position: absolute;
    top: -10px;
    left: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #C3B1E1;
    height: 40px;
    width: 110%;
    z-index: 3;
}

.shop-img img {
    height: 38px;
}

.label-new {
    position: absolute;
    left: 0;
    top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #91ADD0;   
    width: 100%;
    z-index: 1;
    display: none;
}

.label-new span {
    color: gold;
    font-weight: bold;
}

.-label-new {
    visibility: hidden;
}

.image-prod {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    z-index: 0;
}

.image-prod img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.data-product {
    background-color: #C3B1E1;
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-bottom: -10px;
    padding: 5px 10px;
    position: relative;
    z-index: 0;
}

.name-product{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin: 5px 0 10px -5px;
    border-bottom: 1px solid #6e46af;
    width: calc(100% + 10px);
    padding-bottom: 5px;
}

.name-product p {
    color: #333333;
    font-weight: bold;
    width: 83%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.categorie, .shop-name, .available {
    color: #473267;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 5px 0;
    z-index: 3;
}

.categorie a, .shop-name a, .available span {
    color: #6c5293;
    text-decoration: underline;
    position: relative;
}
.available span{
    text-decoration: none;
}
.categorie a:hover, .shop-name a:hover {
    color: #ae95d2;
}

.price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    position: relative;
}

.price-label {
    font-size: 18px;
    color: #878795;
}

.price-discount {
    position: absolute;
    transform: translateY(-620%);
    right: 10px;
    background-color: #EC407A;
    padding: 3px 6px;
    border-radius: 6px;
    box-shadow: 0 0 5px #EC407A,
                0 0 5px #EE5186,
                0 0 5px #F06292;
    z-index: 0;
}

.price-discount span {
    color: white;
    font-size: 14px;
}

.-price-discount {
    visibility: hidden;
}

.actions-product {
    border-top: 1px solid #6e46af;
    width: calc(100% + 20px);
    margin: 10px -10px 0 -10px;
    padding: 5px 10px;
    position: relative;
    z-index: 2;
}

.actions-product button {
    margin-top: 6px;
    border: none;
    width: 100%;
    padding: 10px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.btn-fav button {
    background-color: var(--rojo-boton);
    color: #FFE0EB;
}

.btn-addCart{
    & .cart-button{
        background-color: #6e46af;
        color: white;

        &:hover {
            background-color: rgb(230, 230, 230);
            color: #6e46af;
        }
    }
    & .agotado{
        background-color: gray;
        color: var(--color-texto);

        &:hover{
            background-color: var(--color-texto);
            color: gray;
        }
    }
}

.btn-fav button:hover {
    background-color: #FFE0EB;
    color: var(--rojo-boton);
}

/* Enlace principal invisible que cubre todo el producto */
.product-main-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0;
}

/* Enlace de promoción */
.promo-link {
    position: relative;
    z-index: 0;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Media Queries */
@media (min-width: 0px) and (max-width: 768px) {
    .product-link-container {
        max-width: 165px;
    }
    
    .product-header {
        height: 30px;
    }
    
    .shop-img {
        height: 32px;
        width: 115%;
    }
    
    .shop-img img {
        height: 30px;
    }
    
    .label-new {
        top: 32px;
        font-size: 10px;
    }
    
    .image-prod {
        height: 140px;
    }
    
    .name-product {
        font-size: 12px;
        margin: 2px 0 5px -5px;
    }
    
    .categorie, .shop-name, .available {
        font-size: 12px;
    }
    
    .price-label {
        font-size: 15px;
    }
    
    .price-discount {
        transform: translateY(-520%);
        right: 0;
        padding: 2px 4px;
        box-shadow: 0 0 3.5px #EC407A,
                    0 0 3.5px #EE5186,
                    0 0 3.5px #F06292;
    }
    
    .price-discount span {
        font-size: 12px;
    }
    
    .actions-product {
        margin: 5px -10px 0 -10px;
        padding: 2px 10px;
    }
    .actions-product button {
        font-size: 9px;
        height: 35px;
        margin-top: 2px;
        padding: 5px;
    }
}