.mi-producto {
    display: block;
    background: #fff;
    border: 1px solid #ececec;
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
    padding: 20px;
    position: relative;
    padding-top: 35px;
}

.mi-producto__imagen {
    float: left;
    width: 160px;
}

.mi-producto__imagen img {
    max-width: 100%;
    max-height: 200px;
    display: block;
    margin-bottom: 15px;
}

.mi-producto__contenido {
    margin-left: 180px;
}

.mi-producto__titulo {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #1E73BE;
}

.mi-producto__descripcion ul {
    list-style-type: disc;
    list-style-position: outside;
    margin: 0 0 5px;
    padding-left: 20px;
}

.mi-producto__descripcion li {
    margin: 0;
    padding: 0;
}

/* Footer todo a la derecha */
.mi-producto__footer {
    margin-left: 180px;
    display: flex;
    justify-content: flex-end; /* bloque derecho a la derecha */
}

/* Bloque derecho vertical: Prime arriba, fila precio+botón abajo */
.mi-producto__right-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

/* Prime encima del botón */
.mi-producto__prime-block {
    display: flex;
    justify-content: flex-end;
}

/* Precio y botón en fila */
.mi-producto__precio-boton {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Precio */
.mi-producto__precio {
    font-weight: 700;
}

/* Botón */
.mi-producto__enlace {
    display: inline-block;
    background: #f0c14b;
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #9c7e31;
    border-radius: 3px;
    padding: 5px 10px;
    text-decoration: none;
    color: #111;
    font-weight: normal;
    position: relative; /* necesario para el ::before */
    padding-left: 30px; /* espacio para el icono */
}
.mi-producto__enlace:hover,
.mi-producto__enlace:active,
.mi-producto__enlace:focus {
    background: #eeb933;
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
    color: #111;
}

/* Icono antes del texto */
.mi-producto__enlace::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(https://aspiranion.com/wp-content/plugins/aawp/assets/img/icon-cart-black.svg);
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: 9px center;
    pointer-events: none; /* evita problemas de click */
}

/* Icono Prime */
.mi-producto__prime img {
    height: 17px;
    margin: 5px;
    display: block;
}

/* Ribbon AHORRA arriba derecha */
.mi-producto {
    position: relative; /* necesario para el ribbon */
}

.mi-producto__ribbon {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #27AE60;
    color: #fff;
    font-weight: 400;
    font-size: 13px;
    padding: 0px 10px;
    border-radius: 0px;
    z-index: 5;
}
/* Responsive para móviles */
@media (max-width: 768px) {
  .mi-producto,
  .aawp-product {
    display: flex;
    flex-direction: column !important; /* Apila vertical */
    align-items: center; /* centra imagen y contenido horizontalmente */
    margin-left: 0; /* elimina margenes desktop */
  }

  /* Oculta descripción */
  .mi-producto__descripcion,
  .aawp-product__description {
    display: none !important;
  }

  /* Contenido principal: título debajo de la imagen */
  .mi-producto__contenido,
  .aawp-product__content {
    margin-left: 0 !important; /* elimina margen desktop */
    width: 100%;
  }

  /* Footer: botón y prime abajo */
  .mi-producto__footer,
  .aawp-product__footer {
    display: flex;
    flex-direction: row; /* pone elementos en fila */
    gap: 10px;
    margin-left: 0 !important;
    width: 100%;
  }

  /* Imagen: ajustar tamaño y centrar */
  .mi-producto__imagen,
  .aawp-product__thumb {
    width: auto;
    text-align: center;
  }

  .mi-producto__imagen img,
  .aawp-product__thumb img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px; /* centra la imagen */
  }
}