/* =========================================================
   CATÁLOGO - BOTONES MEJORADOS (SOLO TAMAÑO, SIN CAMBIAR COLORES/HOVER)
   ========================================================== */

.store-products-page .store-product-footer-catalog {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end; /* CAMBIADO: todo a la derecha */
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* El área del precio debe estar a la izquierda cuando hay espacio */
.store-products-page .store-product-price-area {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: auto; /* Esto empuja los botones a la derecha */
}

/* --- BOTÓN DEL CARRITO MÁS GRANDE --- */
.store-products-page .store-product-action-catalog {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    padding: 0;
    border: 0;
    font-size: 1.1rem;
}

.store-products-page .store-product-action-catalog i {
    line-height: 1;
    font-size: 1.1rem;
}

/* --- CONTENEDOR DE ACCIONES - SIEMPRE A LA DERECHA --- */
.store-products-page .store-product-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* =========================================================
   CUANDO EL PRECIO ES LARGO - LOS BOTONES BAJAN PERO A LA DERECHA
   ========================================================== */

/* Cuando el precio es largo y los botones bajan a la siguiente línea */
@media (max-width: 480px) {
    .store-products-page .store-product-footer-catalog {
        flex-direction: column;
        align-items: flex-end; /* Esto alinea todo a la derecha */
        gap: 0.6rem;
    }

    /* El precio ya no necesita margin-right auto porque está en columna */
    .store-products-page .store-product-price-area {
        margin-right: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* Precio alineado a la derecha */
    }
    
    .store-products-page .store-product-card-actions {
        width: auto;
        justify-content: flex-end;
    }
    
    /* Todos los textos del área de precio a la derecha */
    .store-products-page .store-product-price,
    .store-products-page .store-product-price-area .text-muted,
    .store-products-page .store-product-price-area .badge,
    .store-products-page .store-product-stock {
        text-align: right;
        width: 100%;
    }
    
    .store-products-page .store-product-price-area .badge {
        align-self: flex-end;
        width: auto;
    }
}

/* Móvil pequeño - botones proporcionados */
@media (max-width: 575.98px) {
    .store-products-page .store-product-action-catalog {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .store-products-page .store-product-action-catalog i {
        font-size: 1rem;
    }

    .store-products-page .store-product-price {
        font-size: 0.85rem;
    }

    .store-products-page .store-product-footer-catalog .badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.45rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .store-products-page .store-product-footer-catalog {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    
    .store-products-page .store-product-price-area {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .store-products-page .store-product-price {
        font-size: 0.8rem;
        text-align: right;
        word-break: break-word;
    }
    
    .store-products-page .store-product-card-actions {
        width: auto;
        justify-content: flex-end;
    }
}